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 trying to use the Disclosure component with a checkbox on the button element. My desired behaviour would be that if I click on the label that wraps the checkbox and the text it would trigger the event and the panel would show up. Unfortunately the panel only shows up if I click directly on the checkbox element. Here's the example
PS: I have also tried instead of using a <label> element to wrap the text + checkbox, using the HTML attribute for but go the same result.
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
-
I am trying to use the
Disclosure
component with a checkbox on the button element. My desired behaviour would be that if I click on the label that wraps the checkbox and the text it would trigger the event and the panel would show up. Unfortunately the panel only shows up if I click directly on the checkbox element.Here's the example
PS: I have also tried instead of using a
<label>
element to wrap the text + checkbox, using the HTML attributefor
but go the same result.Beta Was this translation helpful? Give feedback.
All reactions