Skip to content

Clicking a Toggle in DataTable without triggering row click #1609

Answered by metonym
omar2205 asked this question in Q&A
Discussion options

You must be logged in to vote

Try stopping the click event propagation on the Toggle.

<Toggle
+ on:click={(e) => e.stopPropagation()}
  hideLabel
  labelA=""
  labelB=""
  toggled={cell.value === "ACTIVE"}
/>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@omar2205
Comment options

Answer selected by omar2205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants