We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the destroy method, like explained in the documentation:
autosize.destroy(document.querySelectorAll('textarea'));
The clean up code at https://github.com/jackmoore/autosize/blob/master/src/autosize.js#L126-L135 does not cleanup the event listener for autosize:update. Which causes leaking of listeners.
The text was updated successfully, but these errors were encountered:
Simply the following line should be added:
ta.removeEventListener('autosize:update', update);
Sorry, something went wrong.
97a0f84
No branches or pull requests
When using the destroy method, like explained in the documentation:
The clean up code at https://github.com/jackmoore/autosize/blob/master/src/autosize.js#L126-L135 does not cleanup the event listener for autosize:update. Which causes leaking of listeners.
The text was updated successfully, but these errors were encountered: