Skip to content
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

Destroy typewatch? #36

Closed
drosanda opened this issue Jul 21, 2017 · 3 comments
Closed

Destroy typewatch? #36

drosanda opened this issue Jul 21, 2017 · 3 comments

Comments

@drosanda
Copy link

Hi There,

Short story I'm currently implement type watch input text on a boostrap modal. This modal has two trigger button, if I execute any button, typewatch only work on the first button that I was execute. I dont know exaclty whats going on. So, I decided want to try destroying typeWatch first and then revoke while modal shown.

Anyone can tell me how to destroy typewatch?

thanks

@winzig
Copy link

winzig commented Nov 5, 2020

I just came here to find out the same thing, looked through the code and this is where your given elements get bound to something:

jQuery(elem).on('keydown paste cut input', startWatch);

So you should be able to destroy typeWatch by calling the jQuery .off() method for those same events on your elements:

jQuery(".your-elements").off("keydown paste cut input");

@github-actions
Copy link

This issue is stale because it has been open 90 days with no activity. Remove stale label, add a comment, or this will be closed in 5 days.

@github-actions
Copy link

This issue was closed due to no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants