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

Select & clear text doesn't fire onChange event #9

Open
mattpass opened this issue Nov 22, 2013 · 3 comments
Open

Select & clear text doesn't fire onChange event #9

mattpass opened this issue Nov 22, 2013 · 3 comments

Comments

@mattpass
Copy link

If you setText('xyz'), then highlight the text and hit delete or backspace keys it doesn't fire the onChange event.

@lorenzoongithub
Copy link
Owner

Matt,
are you sure ? I tried to recreate it and I could not do that.
I have written a js fiddle http://jsfiddle.net/NpeMN/ , can you modify the fiddle to make your case ?

@mattpass
Copy link
Author

Tried your fiddle and same result (in IE10 plus Chrome and Firefox, both latest).

To this this: view your fiddle, select text and hit Delete or Backspace to clear it, onChange doesn't fire.

In essence, clearing initial text doesn't fire the event - but note that it's only regarding initial text. If you retype 'apple' as 'pear' and clear pear it fires on onchange event. However, clearing the initial 'apple' text doesn't.

@lorenzoongithub
Copy link
Owner

@mattpass I think you might have a point here. I will have to take a look

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

2 participants