mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Prevent checkboxes from firing change events when losing focus
This is because toggling the checkbox is committing the value.
This commit is contained in:
Notes:
github-actions[bot]
2024-11-18 08:05:07 +00:00
Author: https://github.com/Psychpsyo Commit: https://github.com/LadybirdBrowser/ladybird/commit/3856dd946b9 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2379
@@ -637,6 +637,7 @@ void HTMLInputElement::commit_pending_changes()
|
||||
case TypeAttributeState::Telephone:
|
||||
case TypeAttributeState::Text:
|
||||
case TypeAttributeState::URL:
|
||||
case TypeAttributeState::Checkbox:
|
||||
if (!m_has_uncommitted_changes)
|
||||
return;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user