Skip to content

Button Click event calling twice #2085

Discussion options

You must be logged in to vote

Hi @vignesh-sivaprakasam!

From an accessibility perspective, a checkbox should not be nested within a button as you can't nest focusable HTML elements. In the HTML spec, it highlights that permitted content in a Button includes "Phrasing content but there must be no Interactive content".

Could you share more about your use case? Happy to discuss possible accessible options to the interaction you're looking for.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by TheSisb
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants