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:
Psychpsyo
2024-11-16 12:33:40 +01:00
committed by Andreas Kling
parent c898ee90cf
commit 3856dd946b
3 changed files with 17 additions and 0 deletions

View File

@@ -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;