Skip to content

Commit

Permalink
3e81af170ae4a39818da49b407a7b793ea854ab9 Dev: Limit body children sel…
Browse files Browse the repository at this point in the history
…ector as we need a block level element as the host

Sync to source repo @3e81af170ae4a39818da49b407a7b793ea854ab9
  • Loading branch information
dtbuild committed Jan 20, 2025
1 parent 250af8d commit 8d0d334
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.2.0",
"last-sync": "cfe29419f30e926e0595fae5a8ab904dc02a8fd5"
"last-sync": "3e81af170ae4a39818da49b407a7b793ea854ab9"
}
2 changes: 1 addition & 1 deletion js/dataTables.buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ $.extend(Buttons.prototype, {
hostButtonNode.attr('aria-expanded', 'true');

if (hostNode.parents('body')[0] !== document.body) {
hostNode = $(document.body).children().last();
hostNode = $(document.body).children('div, section, p').last();
}

if (options.popoverTitle) {
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 @@ -1449,7 +1449,7 @@ $.extend(Buttons.prototype, {
hostButtonNode.attr('aria-expanded', 'true');

if (hostNode.parents('body')[0] !== document.body) {
hostNode = $(document.body).children().last();
hostNode = $(document.body).children('div, section, p').last();
}

if (options.popoverTitle) {
Expand Down

0 comments on commit 8d0d334

Please sign in to comment.