1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 09:54:24 +04:00

fixed dropdown issue on tables issue #1249 (#1269)

This commit is contained in:
Santanu Barman
2022-09-27 01:43:25 +05:30
committed by GitHub
parent 6ca8788b0d
commit 07b0292e2c
2 changed files with 7 additions and 3 deletions

View File

@@ -5,5 +5,8 @@ Core dropdowns
*/ */
let dropdownTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="dropdown"]')); let dropdownTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="dropdown"]'));
dropdownTriggerList.map(function (dropdownTriggerEl) { dropdownTriggerList.map(function (dropdownTriggerEl) {
return new Dropdown(dropdownTriggerEl); let options = {
boundary: dropdownTriggerEl.getAttribute('data-bs-boundary') === 'viewport' ? document.querySelector('.btn') : 'clippingParents',
}
return new Dropdown(dropdownTriggerEl, options);
}); });

View File

@@ -116,3 +116,4 @@
box-shadow: none; box-shadow: none;
} }
} }