mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb: Dispatch a "change" event when <input> checked state changes
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 02:45:49 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/71092226bd0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user