Skip to content

Commit

Permalink
822bb21ef766a967c1d99819d00aa273d2001b30 Dev: Tweak previous fix - it…
Browse files Browse the repository at this point in the history
… was causing an infinite loop

Sync to source repo @822bb21ef766a967c1d99819d00aa273d2001b30
  • Loading branch information
dtbuild committed Sep 30, 2024
1 parent d8fb304 commit dc05fc0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
],
"src-repo": "http://github.com/DataTables/Buttons",
"last-tag": "3.1.2",
"last-sync": "3583195f85049bbf3dde8d15b3768617bc8183af"
"last-sync": "822bb21ef766a967c1d99819d00aa273d2001b30"
}
2 changes: 1 addition & 1 deletion js/dataTables.buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ $.extend(Buttons.prototype, {
}

for (var i = 0, ien = buttons.length; i < ien; i++) {
if (buttons[i].node === node || $(buttons[i].node).children(node).length) {
if (buttons[i].node === node || $(buttons[i].node).children().eq(0).get(0) === node) {
return buttons[i];
}

Expand Down
2 changes: 1 addition & 1 deletion js/dataTables.buttons.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.buttons.min.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.buttons.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ $.extend(Buttons.prototype, {
}

for (var i = 0, ien = buttons.length; i < ien; i++) {
if (buttons[i].node === node || $(buttons[i].node).children(node).length) {
if (buttons[i].node === node || $(buttons[i].node).children().eq(0).get(0) === node) {
return buttons[i];
}

Expand Down

0 comments on commit dc05fc0

Please sign in to comment.