mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Stop radio buttons firing change events when losing focus
This commit is contained in:
Notes:
github-actions[bot]
2024-11-22 13:59:41 +00:00
Author: https://github.com/Psychpsyo Commit: https://github.com/LadybirdBrowser/ladybird/commit/c75dda8f8bc Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2501 Reviewed-by: https://github.com/tcl3 ✅
@@ -638,6 +638,7 @@ void HTMLInputElement::commit_pending_changes()
|
||||
case TypeAttributeState::Text:
|
||||
case TypeAttributeState::URL:
|
||||
case TypeAttributeState::Checkbox:
|
||||
case TypeAttributeState::RadioButton:
|
||||
if (!m_has_uncommitted_changes)
|
||||
return;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user