Skip to content

Determine clicked column in row onClick handler #2194

Answered by Svenito
dharkness asked this question in General
Discussion options

You must be logged in to vote

I have the same issue. I wanted to ignore the expand row column, which in my case is an svg caret. I used a conditional in the onClick to determine if the click was made on the caret or not. Something like

if (!e.target.closest("#NOCLICK")) {
    row.toggleRowSelected();
}

Having assigned an ID to the cell that I don't want to react

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dharkness
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
2 participants