[Webkit-unassigned] [Bug 227700] New: Inconsistent 'change' event dispatch on color input
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jul 6 03:39:12 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=227700
Bug ID: 227700
Summary: Inconsistent 'change' event dispatch on color input
Product: WebKit
Version: Safari 14
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Forms
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dan at moqups.com
CC: cdumez at apple.com, wenson_hsieh at apple.com
Created attachment 432916
--> https://bugs.webkit.org/attachment.cgi?id=432916&action=review
'input' and 'change' events on <input type=color>
<input type=color/> opens a popup containing color swatches. Clicking on any color swatch produces an `input` event, followed by a `change` event and (crucially) closes the popup.
The _Show colors..._ button opens up the macOS native color picker. Dragging the cursor around the color wheel produces pairs of `input` and `change` events. I believe `change` event should be reserved to the user committing the value change by dismissing the color picker. This would be consistent with behaviors in both Chrome/macOS and Firefox/macOS.
Attached for convenience is a simple test case with a color input that logs its `input` and `change` events in the browser console.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210706/f8bea363/attachment.htm>
More information about the webkit-unassigned
mailing list