Skip to content

Events not being triggered when re-setting value to last focused value #442

@danbehar

Description

@danbehar

If you enter a value in a masked input field, then take away focus, and then regain focus again, setting the value to what it was when focus was regained will not trigger onchange or onkeypress events

Steps to reproduce:
See http://jsfiddle.net/k2s0hvcm/ for fiddle with input field.

Enter value 12 in the input box. You should see events triggered for changing the value to 1 and then changing it to 12.
Click outside the field, to take away focus.
Go back into the field. Delete the last character so 1 is the value in the input box. This event will be triggered as well.
Without taking away focus re-enter 2 so that 12 is the value. You will see no events were triggered for the new value of 12.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions