How to disable cell highlight when clicking it
How to disable cell highlight when clicking it
I tried searching the forum and web for this question as it seems like somebody would have run across this.
I want to turn off the cell highlighting when a user clicks on a cell in the table. It currently puts a 1px border around it.
I'm using Datatables in a Bootstrap 5 theme package. I've attached a screenshot from the author's example page.
When I check DevTools, a class called "focus" is being added to the <TD> tag. Is that something I can turn off in DataTables or is that coming from the theme?
This question has an accepted answers - jump to answer
Answers
Check this site's examples to compare behaviours.
Looks like you have KeyTables enabled on your DataTable. Remove the
keys
option from your table's initialisation if you don't want it.Allan
Thanks! Setting the keys option to false resolved my issue.