You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One click on a <label> inside an element with data-simple-event sends the event twice.
Expected: one click sends one event.
Current: <div data-simple-event="plan_toggle"><label for="y">Yearly</label><input id="y" type="radio"></div> sends two plan_toggle events per click. The browser fires a click on the label and then a forwarded click on the input, and both reach the script. The same happens when the label wraps the input.
Why
Checkbox, radio and toggle UIs inside tagged elements report twice the real number of events.
Notes
Inline events are new in the main script in v12 (scripts#40). Reported in this review thread. Independent clicks in quick succession must still be counted.
Activity