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

Event does not trigger when just using the mouse #4

Closed
KevinUK opened this issue Jul 25, 2012 · 3 comments
Closed

Event does not trigger when just using the mouse #4

KevinUK opened this issue Jul 25, 2012 · 3 comments

Comments

@KevinUK
Copy link

KevinUK commented Jul 25, 2012

I have a text field which when clicked on shows previously typed in text (default browser behaviour). The problem is if you click in the text field and then click one of the words, the callback function never gets triggered.

If you are on the previous field and press tab, down, down, tab (select the first item in the list and tab to the next field) then everything works fine so it's just an issue with mouse support.

@dolarsrg
Copy link

You are right. The bug appears when using browser's autocomplete feature using only the mouse since TypeWatch is only listening to keyboard events.

As a workaround until a patch is released you can just add autocomplete='off' attribute to the input field.

@dennyferra
Copy link
Owner

I've been looking into this and can't find any events to attach to that will resolve this issue. The only thing I've been able to do is attach to the change event but this doesn't really give the same effect. I'll leave this issue open for anyone else to contribute ideas.

@dennyferra
Copy link
Owner

Well sure enough a minute later I run across the "oninput" HTML 5 event... This should help with browsers that support that event and other HTML 5 input types as well.

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

No branches or pull requests

3 participants