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
I am rendering a <Checkbox/> with <Label/> - both within a <Field/> component.
The Field has a padding. Between the checkbox and the label is a gap (flexbox).
My problem:
The checkbox only gets toggled, if I click exactly on the Checkbox or Label area but it does not change when I click the padding area of the <Field/>. Is this a bug or intended and could I somehow change this behavior?
Clicking in the green are (padding of <Field/>) does not work (also not the gap of the Flexbox). I have to exactly hit the icon or label. I want the whole element to be clickable.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Version:
@headlessui/react": "^2.2.7"
I am rendering a <Checkbox/> with <Label/> - both within a <Field/> component.
The Field has a padding. Between the checkbox and the label is a gap (flexbox).
My problem:
The checkbox only gets toggled, if I click exactly on the Checkbox or Label area but it does not change when I click the padding area of the <Field/>. Is this a bug or intended and could I somehow change this behavior?
Clicking in the green are (padding of <Field/>) does not work (also not the gap of the Flexbox). I have to exactly hit the icon or label. I want the whole element to be clickable.

Beta Was this translation helpful? Give feedback.
All reactions