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

Issue 798762 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Pressing enter in input triggers blur event

Reported by i...@relaylabs.co, Jan 3 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36

Steps to reproduce the problem:
1. Visit this page: https://jsfiddle.net/c22pez5z/
2. Focus the form input
3. Press enter and observe that a native blur event is recorded

What is the expected behavior?
Pressing enter in a form input does not trigger a blur event in other browsers (tested in Firefox and Safari). It seems this behaviour may have changed in Chrome at some point.

What went wrong?
This issue was reported in React (https://github.com/facebook/react/issues/11826) as it is causing issues with React's synthetic event system.

Did this work before? Yes Unknown

Chrome version: 63.0.3239.108  Channel: stable
OS Version: OS X 10.13.2
Flash Version:
 
Labels: Needs-Bisect Needs-Triage-M63
Cc: tkent@chromium.org
Components: -Blink Blink>HTML>Focus
I believe this is likely caused by:

https://chromium.googlesource.com/chromium/src/+/40ccb2581137efc2fc7d2a1041073fa00caed75a

and was done on purpose. The enter is mutating the disabled value on the input.

Comment 3 by i...@relaylabs.co, Jan 3 2018

Thanks for the quick response. I'll look into this change and see if there's a way to work around it in React.
Cc: vamshi.k...@techmahindra.com
Labels: -Needs-Bisect -Type-Bug-Regression M-65 Triaged-ET OS-Linux OS-Windows Type-Bug
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on reported chrome version 63.0.3239.108 and on the latest canary 65.0.3309.0 Using Windows 10, Ubuntu 14.04 and Mac 10.13.1. As the issue is seen from M50(50.0.2634.0) considering it as non-regression and marking it as Untriaged.

Note: In M50(50.0.2634.0) both "Blur counter" and "Native Blur counter" are triggered where in reported and latest canary only "Native Blur counter" is being triggered. Attaching the screenshots for reference.

Thanks!
798762 M50.png
683 KB View Download
798762 canary .png
574 KB View Download

Comment 5 by tkent@chromium.org, Jan 11 2018

Owner: tkent@chromium.org
Status: WontFix (was: Untriaged)
Yes, the behavior change was intentional, and match to the HTML standard.

Sign in to add a comment