Skip to content

Commit

Permalink
3583195f85049bbf3dde8d15b3768617bc8183af Fix: An error would occur if…
Browse files Browse the repository at this point in the history
… an export button was used as a split

https://datatables.net/forums/discussion/79944

Sync to source repo @3583195f85049bbf3dde8d15b3768617bc8183af
  • Loading branch information
dtbuild committed Sep 30, 2024
1 parent e8adf7e commit d8fb304
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": "6afc3b4246898c1cb56eb0fc5ff0f1837610309c"
"last-sync": "3583195f85049bbf3dde8d15b3768617bc8183af"
}
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) {
if (buttons[i].node === node || $(buttons[i].node).children(node).length) {
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) {
if (buttons[i].node === node || $(buttons[i].node).children(node).length) {
return buttons[i];
}

Expand Down

0 comments on commit d8fb304

Please sign in to comment.