New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 695349 link

Starred by 6 users

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Regression: no change event if input cleared in submit handler and then filled with same data

Reported by mbest...@gmail.com, Feb 23 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce the problem:
1. Go to https://jsfiddle.net/ocg90j0u/
2. Type something in the field and press enter
3. Type the same thing in the field and press enter

What is the expected behavior?
You should see the same value twice in the "log"

What went wrong?
Instead you see null, which means that there was no change event fired for the input.

Did this work before? Yes 55

Does this work in other browsers? Yes

Chrome version: 56.0.2924.87  Channel: stable
OS Version: 10.0
Flash Version: 

See https://github.com/knockout/knockout/issues/2206

 

Comment 1 by woxxom@gmail.com, Feb 23 2017

Bisect: 430526 (good) - 430536 (bad), 56.0.2914.0
https://chromium.googlesource.com/chromium/src/+log/90784f46..9483b399?pretty=fuller
Suspecting r430531 ( issue 92492 ) "INPUT/TEXTAREA elements: Dispatch 'change' event even if a user-edit value is overwritten by JavaScript"
Cc: ligim...@chromium.org
Components: Blink
Labels: M-58
Owner: tkent@chromium.org
Status: Assigned (was: Unconfirmed)
Assigning to the CL owner as per the above bisect.

Comment 3 by tkent@chromium.org, Feb 24 2017

Components: -Blink Blink>Forms
Labels: -Pri-2 -M-58 M-57 Pri-1
Sounds like a significant regression.

Comment 5 by tkent@chromium.org, Feb 24 2017

Labels: Merge-Request-57
Status: Fixed (was: Assigned)

Comment 6 by tkent@chromium.org, Feb 24 2017

Labels: ReleaseBlock-Stable
Project Member

Comment 7 by sheriffbot@chromium.org, Feb 25 2017

Labels: -Merge-Request-57 Hotlist-Merge-Approved Merge-Approved-57
Your change meets the bar and is auto-approved for M57. Please go ahead and merge the CL to branch 2987 manually. Please contact milestone owner if you have questions.
Owners: amineer@(clank), cmasso@(bling), ketakid@(cros), govind@(desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 8 by gov...@chromium.org, Feb 25 2017

Please merge your change to M57 branch 2987 by 5:00 PM PT Monday (02/27) so we can take it in for next week last M57 Desktop Beta release before Stable promotion. Thank you.
Project Member

Comment 9 by bugdroid1@chromium.org, Feb 26 2017

Labels: -merge-approved-57 merge-merged-2987
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/12901a927913176a7c998f918e21b761608aaedc

commit 12901a927913176a7c998f918e21b761608aaedc
Author: Kent Tamura <tkent@chromium.org>
Date: Sun Feb 26 19:34:41 2017

Merge "INPUT element: Implicit form submission should reset setTextAsOfLastFormControlChangeEvent." to M57

BUG= 695349 

Review-Url: https://codereview.chromium.org/2716773002
Cr-Commit-Position: refs/heads/master@{#452762}
(cherry picked from commit 5add6ffa7fc5878720f4a561b6edc4cc49e08936)

Review-Url: https://codereview.chromium.org/2712313002 .
Cr-Commit-Position: refs/branch-heads/2987@{#689}
Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943}

[add] https://crrev.com/12901a927913176a7c998f918e21b761608aaedc/third_party/WebKit/LayoutTests/fast/forms/text/text-change-event-after-clear-in-submit.html
[modify] https://crrev.com/12901a927913176a7c998f918e21b761608aaedc/third_party/WebKit/Source/core/html/HTMLInputElement.cpp

Cc: ranjitkan@chromium.org
Labels: TE-Verified-57.0.2987.88 TE-Verified-M57
Rechecked this issue on chrome version 57.0.2987.88 on Windows 10, 7, fix is working as intended. Entered value is displayed twice in the log.

Thanks.! 

Sign in to add a comment