You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Synthetic events for onBlur and onFocus should not bubble.
Tested
OS: Mac OS 10.11.6 and 10.13.4 (no affect on bug)
Browsers: Chrome 66, Firefox 60 (no affect on bug)
React versions: 15.6.2 and 16.3.2 (bug present in both versions)
The text was updated successfully, but these errors were encountered:
This is a known and intentional deviation from native event propagation behavior. It's possible this may change in the future. See #6410 for more information.
Do you want to request a feature or report a bug?
Bug
Current Behavior
Native
blur
andfocus
events do not bubble, but synthetic events foronBlur
andonFocus
do (which violates the non-bubbling event specification).As it is currently implemented in React 16,
onBlur
behaves more like a nativefocusout
event andonFocus
behaves more like a nativefocusin
event.Demos
React 15 demo: https://codepen.io/CITguy/pen/gzzoQj/
React 16 demo: https://codepen.io/CITguy/pen/PeRRwz/
Expected Behavior
Synthetic events for
onBlur
andonFocus
should not bubble.Tested
OS: Mac OS 10.11.6 and 10.13.4 (no affect on bug)
Browsers: Chrome 66, Firefox 60 (no affect on bug)
React versions: 15.6.2 and 16.3.2 (bug present in both versions)
The text was updated successfully, but these errors were encountered: