mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 19:59:17 +00:00
LibWeb: Fire the change event synchronously when committing changes
The spec does not say to do this asynchronously on a task queue.
This commit is contained in:
committed by
Andreas Kling
parent
b749167506
commit
301d58e2d9
@@ -433,10 +433,8 @@ void HTMLInputElement::commit_pending_changes()
|
||||
|
||||
m_has_uncommitted_changes = false;
|
||||
|
||||
queue_an_element_task(HTML::Task::Source::UserInteraction, [this] {
|
||||
auto change_event = DOM::Event::create(realm(), HTML::EventNames::change, { .bubbles = true });
|
||||
dispatch_event(change_event);
|
||||
});
|
||||
auto change_event = DOM::Event::create(realm(), HTML::EventNames::change, { .bubbles = true });
|
||||
dispatch_event(change_event);
|
||||
}
|
||||
|
||||
void HTMLInputElement::update_placeholder_visibility()
|
||||
|
||||
Reference in New Issue
Block a user