mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02: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:
Notes:
sideshowbarker
2024-07-17 07:09:53 +09:00
Author: https://github.com/circl-lastname Commit: https://github.com/SerenityOS/serenity/commit/3e3a200eee Pull-request: https://github.com/SerenityOS/serenity/pull/23432
@@ -11,6 +11,7 @@
|
||||
#include <LibWeb/DOM/DocumentLoadEventDelayer.h>
|
||||
#include <LibWeb/DOM/Text.h>
|
||||
#include <LibWeb/FileAPI/FileList.h>
|
||||
#include <LibWeb/HTML/ColorPickerUpdateState.h>
|
||||
#include <LibWeb/HTML/FormAssociatedElement.h>
|
||||
#include <LibWeb/HTML/HTMLElement.h>
|
||||
#include <LibWeb/Layout/ImageProvider.h>
|
||||
@@ -92,7 +93,7 @@ public:
|
||||
|
||||
bool is_mutable() const { return m_is_mutable; }
|
||||
|
||||
void did_pick_color(Optional<Color> picked_color);
|
||||
void did_pick_color(Optional<Color> picked_color, ColorPickerUpdateState state);
|
||||
|
||||
void did_select_files(Span<SelectedFile> selected_files);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user