mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:07:35 +00:00
LibWeb: Do not issue change
event for every update of color input
Per spec, the change event shall only be issued once the change is finally committed by the user, IE by closing the color picker window.
This commit is contained in:
parent
bad7f0091f
commit
3e3a200eee
3 changed files with 14 additions and 11 deletions
|
@ -337,7 +337,7 @@ void Page::color_picker_update(Optional<Color> picked_color, HTML::ColorPickerUp
|
|||
|
||||
if (m_pending_non_blocking_dialog_target) {
|
||||
auto& input_element = verify_cast<HTML::HTMLInputElement>(*m_pending_non_blocking_dialog_target);
|
||||
input_element.did_pick_color(move(picked_color));
|
||||
input_element.did_pick_color(move(picked_color), state);
|
||||
if (state == HTML::ColorPickerUpdateState::Closed)
|
||||
m_pending_non_blocking_dialog_target.clear();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue