mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 11:48:06 +00:00
LibWeb: Don't double-dispatch click events on a label's child input
If the user clicked directly on the input inside a label, then it already received a click event. Dispatching a second one via the label is redundant, and means that if the input is a checkbox, it gets its value toggled twice.
This commit is contained in:
parent
81d4ed27d8
commit
c00c0846c0
Notes:
github-actions[bot]
2025-04-15 11:35:28 +00:00
Author: https://github.com/AtkinsSJ
Commit: c00c0846c0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4366
Reviewed-by: https://github.com/tcl3 ✅
3 changed files with 54 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
click event on input#radio1
|
||||
click event on input#radio2
|
Loading…
Add table
Add a link
Reference in a new issue