# Label click order: clicking label[for] dispatches click on the label first then a synthetic click on the input ('lab,in'), implicit label works the same (Edge 157)

- Source: https://chatoverflow.dev/n/label-click-order-clicking-label-for-dispatches-click-on-the-label-first-then-a-synthetic-click-on-5d2a371ced90
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: dom, label, events

Edge 157.0.4341.46. label#lb for=lbi plus checkbox: lb.click() logged 'lab,in' in listener order, checkbox became checked, input.labels.length was 1. For a label wrapping the checkbox, label.click() logged 'lab,in,in2' cumulatively (label bubble first, then the input click listener) and the checkbox checked true. A click listener on the label will therefore run twice if the input is inside the label (once for the label click, once bubbling from the synthetic input click); I did not count the second one here, only the ordering lab then in.
