When a Fixed column contains a link, when clicked, the entire row is selected. How to avoid it?
When a Fixed column contains a link, when clicked, the entire row is selected. How to avoid it?
![jstuardo](https://secure.gravatar.com/avatar/dfd625d60662f549b89c524354119cd3/?default=https%3A%2F%2Fvanillicon.com%2Fdfd625d60662f549b89c524354119cd3_200.png&rating=g&size=120)
Hello,
Please load this Fiddle: https://jsfiddle.net/desytec/q17L2nbv/41/
see the pencil of the last column (the icon on the right). When that is clicked (actually only shows an alert), the entire row is selected.
I there a way to avoid that? This does not happen if column is not fixed.
Thanks
Jaime
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Don't know about the fixed column issue... but the above code works in your case. Probably a bug in "fixed column"?!
Sorry, no that also doesn't really work because now nothing is selectable any longer. Looks like a bug in "fixed column".
Hello.. I see.... If selector is "td:first-child", only first cell should be to select the row..... When the icon in a fixed column also selects the row, it means that plugin has a bug... maybe I will need to dig into its source code, unless one of the developer is reading this thread.
Regards
Jaime
Yes indeed, use
.select-checkbox
as your selector: updated example.The issue with
:first-child
in that example is the use of FixedColumns which replicates the fixed columns, thus causing there to be another:first-child
per fixed column! Selecting based on the already defined class name resolves that.Allan
Thanks! it worked now.