fix(copy): prevent shorthand copy if source is present in useCopy (#559)

* fix(copy): prevent shorthand copy if source is present in useCopy

* refactor(copy): normalized copy usage
This commit is contained in:
Corentin THOMASSET 2023-08-10 00:07:44 +02:00 committed by GitHub
parent 7b6232a151
commit 86e964a274
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 26 additions and 20 deletions

View file

@ -60,7 +60,7 @@ const { copy: copyDecoded } = useCopy({ source: decodeOutput, text: 'Decoded str
/>
<div flex justify-center>
<c-button @click="copyEncoded">
<c-button @click="copyEncoded()">
Copy
</c-button>
</div>
@ -89,7 +89,7 @@ const { copy: copyDecoded } = useCopy({ source: decodeOutput, text: 'Decoded str
/>
<div flex justify-center>
<c-button @click="copyDecoded">
<c-button @click="copyDecoded()">
Copy
</c-button>
</div>