Skip to content

Commit

Permalink
Temporary BS5 dynamic import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Oct 8, 2023
1 parent e062605 commit a76abd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _dev/js/theme/components/dynamic-bootstrap-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $(() => {
const importModal = new DynamicImportHandler({
jqueryPluginCover: 'modal',
DOMEvents: 'click',
DOMEventsSelector: '[data-toggle="modal"]',
DOMEventsSelector: '[data-bs-toggle="modal"]',
DOMEventsPreventDefault: true,
files: () => [
import('bootstrap/js/src/modal'),
Expand All @@ -18,7 +18,7 @@ $(() => {
const importDropdown = new DynamicImportHandler({
jqueryPluginCover: 'dropdown',
DOMEvents: 'click',
DOMEventsSelector: '[data-toggle="dropdown"]',
DOMEventsSelector: '[data-bs-toggle="dropdown"]',
DOMEventsPreventDefault: true,
files: () => [
import('bootstrap/js/src/dropdown'),
Expand All @@ -29,7 +29,7 @@ $(() => {
const importCollapse = new DynamicImportHandler({
jqueryPluginCover: 'collapse',
DOMEvents: 'click',
DOMEventsSelector: '[data-toggle="collapse"]',
DOMEventsSelector: '[data-bs-toggle="collapse"]',
DOMEventsPreventDefault: true,
files: () => [
import('bootstrap/js/src/collapse'),
Expand Down

0 comments on commit a76abd9

Please sign in to comment.