diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-11 18:25:15 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-11 18:42:43 +0200 |
commit | 71092226bd0f705e499146aa3ffde166762c2e87 (patch) | |
tree | 385501cc5b5c3b948a8e7fdf92f2c9227edb7b30 | |
parent | f2431adf471af027b04b635f6991b708bf0627c1 (diff) | |
download | serenity-71092226bd0f705e499146aa3ffde166762c2e87.zip |
LibWeb: Dispatch a "change" event when <input> checked state changes
-rw-r--r-- | Libraries/LibWeb/HTML/HTMLInputElement.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Libraries/LibWeb/HTML/HTMLInputElement.cpp index 170a10cc40..1e89724343 100644 --- a/Libraries/LibWeb/HTML/HTMLInputElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLInputElement.cpp @@ -109,6 +109,8 @@ void HTMLInputElement::set_checked(bool checked) m_checked = checked; if (layout_node()) layout_node()->set_needs_display(); + + dispatch_event(DOM::Event::create("change")); } bool HTMLInputElement::enabled() const |