aboutsummaryrefslogtreecommitdiff
path: root/js/src/dropdown.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2022-11-22 09:51:29 +0200
committerGitHub <[email protected]>2022-11-22 09:51:29 +0200
commit8f6de23682cf08f0e70b9561f75642cbcca14250 (patch)
treef56a8abfaef937458b7ae272dd53e01795d73524 /js/src/dropdown.js
parentcb021439c683d9805e2864c58095b92d405e9b11 (diff)
parentabdd3fef1fc742d2a21fc6f536cdad0ebb67aa3c (diff)
downloadbootstrap-8f6de23682cf08f0e70b9561f75642cbcca14250.tar.xz
bootstrap-8f6de23682cf08f0e70b9561f75642cbcca14250.zip
Merge branch 'main' into prepare-523
Diffstat (limited to 'js/src/dropdown.js')
-rw-r--r--js/src/dropdown.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index 9596baa9a..c699598f7 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -8,6 +8,7 @@
import * as Popper from '@popperjs/core'
import {
defineJQueryPlugin,
+ execute,
getElement,
getNextActiveElement,
isDisabled,
@@ -15,11 +16,11 @@ import {
isRTL,
isVisible,
noop
-} from './util/index'
-import EventHandler from './dom/event-handler'
-import Manipulator from './dom/manipulator'
-import SelectorEngine from './dom/selector-engine'
-import BaseComponent from './base-component'
+} from './util/index.js'
+import EventHandler from './dom/event-handler.js'
+import Manipulator from './dom/manipulator.js'
+import SelectorEngine from './dom/selector-engine.js'
+import BaseComponent from './base-component.js'
/**
* Constants
@@ -319,7 +320,7 @@ class Dropdown extends BaseComponent {
return {
...defaultBsPopperConfig,
- ...(typeof this._config.popperConfig === 'function' ? this._config.popperConfig(defaultBsPopperConfig) : this._config.popperConfig)
+ ...execute(this._config.popperConfig, [defaultBsPopperConfig])
}
}