Input event composed flag not set correctly |
||||||
Issue descriptionThe composed flag for input events should be set to true by default (see https://github.com/w3c/webcomponents/issues/513). However, this is not the case for some input events fired from number inputs. The flag is set to true when the value is changed by typing a new value with the keyboard, but if it is changed by clicking on the up/down buttons or by pressing the up/down arrow keys, the composed flag is set to false. A test case demonstrating this issue can be found at: http://jsfiddle.net/umxtkdah/ To test, change the value using the arrow keys, up/down buttons, or by typing a new value. The composed: value for the event that is printed out changes based on how the value is modified. Tested in 68.0.3440.106 Stable on Linux. This impacts Polymer 2 migration for Web UI, since in web components v1 events without composed: true are not observable outside the shadow root they are fired in.
,
Sep 6
FYI, a naive fix is at https://chromium-review.googlesource.com/c/chromium/src/+/1211669. This fixes the issue depicted in the provided minimal examples, but unclear yet if it creates any other issues.
,
Sep 6
,
Sep 12
,
Oct 18
,
Oct 30
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/146a312eb07698ae580ddfa07a640ba24ead58f4 commit 146a312eb07698ae580ddfa07a640ba24ead58f4 Author: rbpotter <rbpotter@chromium.org> Date: Tue Oct 30 18:41:53 2018 Ensure 'input' event always fires with the 'composed' flag true. Bug: 879261 Change-Id: I5513a889df874bef4157245d7ad7454e79777cfa Reviewed-on: https://chromium-review.googlesource.com/c/1211669 Reviewed-by: Hayato Ito <hayato@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#603973} [add] https://crrev.com/146a312eb07698ae580ddfa07a640ba24ead58f4/third_party/WebKit/LayoutTests/fast/forms/number/number-input-event-composed.html [modify] https://crrev.com/146a312eb07698ae580ddfa07a640ba24ead58f4/third_party/blink/renderer/core/dom/node.cc
,
Oct 31
,
Oct 31
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by dpa...@chromium.org
, Sep 6Labels: OS-Chrome OS-Linux OS-Mac OS-Windows