From 71092226bd0f705e499146aa3ffde166762c2e87 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 11 Sep 2020 18:25:15 +0200 Subject: [PATCH] LibWeb: Dispatch a "change" event when checked state changes --- Libraries/LibWeb/HTML/HTMLInputElement.cpp | 2 ++ 1 file changed, 2 insertions(+) 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