Skip to content

Commit

Permalink
Fix disabling selection on hyperlink clicks (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
guoci authored Nov 2, 2023
1 parent bccddb8 commit 34ce6f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

- Upgraded DataTables version to 1.13.6 (thanks, @stla, #1091).

- Fixed disabling selection on hyperlink clicks (thanks, @guoci, #1093).

# CHANGES IN DT VERSION 0.30

- Fixed a bug that when using `updateSearch()`, the clear button inside the input box doesn't show up, and the table doesn't update when the input is cleared (thanks, @DavidBlairs, #1082).
Expand Down
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 34ce6f2

Please sign in to comment.