-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clean up the temp textarea #196
Comments
I understand. I wonder if you can create an option for this, like isDestoryTempEverytime. So if isDestoryTempEverytime is true, we remove the tempTextArea after copying. Therefore, for people who don't care about this, they don't need to create and destroy every time. |
The option for enabling/disabling this functionality sounds like a great idea! Another possible name for the option: Will you be doing the code change or would you like a PR? |
cleanUpAfterCopy sounds good to me. Welcome to make a PR. I am a bit busy now. Thx! |
Thanks for a useful library!
My use-case is quite unique, but nonetheless, here it is:
document.activeElement
is aninput
ortextarea
.activeElement
becomes the temptextarea
that this library generates here.This issue can be easily solved if we destroy the
textarea
after using it.I propose to replace line 81 with the following:
I have tested this and it works for my use-case. Please let me know what you think.
The text was updated successfully, but these errors were encountered: