Chromium Code Reviews
DescriptionINPUT/TEXTAREA elements: Dispatch 'change' event even if a user-edit value is overwritten by JavaScript
Old behavior:
'change' event was dispatched on blur if the last edit was done by a user, and it
changed the value.
New behavior:
'change' event is dispatched on blur if a user has edited the value after the last
'change' event, and the value is changed. Updating value by JavaScript doesn't
matter.
We had the old behavior because |value| IDL setter updated
textAsOfLastFormControlChangeEvent. With this CL, |value| IDL setter updates
textAsOfLastFormControlChangeEvent only if the element is not focused.
New behavior matches to Firefox and Presto.
BUG=92492
Committed: https://crrev.com/e91b6459cf18e90f2766a68a2487701610213be4
Cr-Commit-Position: refs/heads/master@{#430531}
Patch Set 1 #
Messages
Total messages: 23 (18 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||