completely
completely copied to clipboard
Select & clear text doesn't fire onChange event
If you setText('xyz'), then highlight the text and hit delete or backspace keys it doesn't fire the onChange event.
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 ?
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.
@mattpass I think you might have a point here. I will have to take a look