Skip to content

Commit

Permalink
91ec1694df383e3520038c0ecab83ee04b93b829 New: When closing a popover,…
Browse files Browse the repository at this point in the history
… trigger a `buttons-popover-hide.dt` event on the `-tag body`.

f95f576bb7fa6fcc6fa6ccb26c3a8a5b9e475ecf Merge branch 'master' of github.com:DataTables/Buttons

Sync to source repo @f95f576bb7fa6fcc6fa6ccb26c3a8a5b9e475ecf
  • Loading branch information
dtbuild committed Oct 21, 2024
1 parent cdb39d4 commit a8ca3e6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 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": "3cab48583da254adb44e6c00b7bcd13023563712"
"last-sync": "f95f576bb7fa6fcc6fa6ccb26c3a8a5b9e475ecf"
}
2 changes: 2 additions & 0 deletions js/dataTables.buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,8 @@ $.extend(Buttons.prototype, {
$('body').off('.dtb-collection');
dt.off('buttons-action.b-internal');
dt.off('destroy');

$('body').trigger('buttons-popover-hide.dt');
};

if (content === false) {
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: 2 additions & 0 deletions js/dataTables.buttons.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,8 @@ $.extend(Buttons.prototype, {
$('body').off('.dtb-collection');
dt.off('buttons-action.b-internal');
dt.off('destroy');

$('body').trigger('buttons-popover-hide.dt');
};

if (content === false) {
Expand Down

0 comments on commit a8ca3e6

Please sign in to comment.