mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:17:35 +00:00
LibWeb: Dispatch a "change" event when <input> checked state changes
This commit is contained in:
parent
f2431adf47
commit
71092226bd
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,8 @@ void HTMLInputElement::set_checked(bool checked)
|
||||||
m_checked = checked;
|
m_checked = checked;
|
||||||
if (layout_node())
|
if (layout_node())
|
||||||
layout_node()->set_needs_display();
|
layout_node()->set_needs_display();
|
||||||
|
|
||||||
|
dispatch_event(DOM::Event::create("change"));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HTMLInputElement::enabled() const
|
bool HTMLInputElement::enabled() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue