3
msdsk
289d

Today I've learned: the change event doesn't fire if the content of an input has not been changed. If you have "5", select it and in its place input "5", the cursor will be moved but the event will not be fired.

Comments
  • 2
    Yes. Stumbled upon it once and wasn't exactly pleased.
  • 0
    Are you trying to catch cursor change or data changed?
  • 1
    @Demolishun i have a row of single-letter inputs, when the user clicks on one that was previously filled, it automatically selects the content, after the user inputs a new letter it should move to the next input field. And it works perfectly unless the user inputs the same letter. I could do that on keyUp or something, but maybe let's just tell the user to suck it, they can use a tab in this corner case.
  • 2
    @msdsk interesting. Yeah, kinda sucks.
Add Comment