Skip to content

Commit

Permalink
Update datatables.js
Browse files Browse the repository at this point in the history
fix selection on hyperlink click
  • Loading branch information
guoci authored Nov 2, 2023
1 parent bccddb8 commit 78fcc0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/htmlwidgets/datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ HTMLWidgets.widget({
changeInput('cell_clicked', {});

// do not trigger table selection when clicking on links unless they have classes
table.on('click.dt', 'tbody td a', function(e) {
table.on('mousedown.dt', 'tbody td a', function(e) {
if (this.className === '') e.stopPropagation();
});

Expand Down

0 comments on commit 78fcc0b

Please sign in to comment.