Closed phenomen closed 2 years ago
I've tried a couple of ways but none copies the content of textarea. copy works fine with other elements (div, p, pre, etc).
copy
<textarea id="copyArea" bind:value={fixedCopy} />
<textarea id="copyArea"> {fixedCopy} </textarea>
<button use:copy={'#copyArea'}> Copy </button>
Thanks for filing! I'll take a look at it asap 🙂
I have just pushed a fix for this! Both methods should work in /svu version 0.1.5 😊
/svu
I've tried a couple of ways but none copies the content of textarea.
copy
works fine with other elements (div, p, pre, etc).