Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoSot <geo.sotis@gmail.com>2022-10-07 15:25:00 +0300
committerGitHub <noreply@github.com>2022-10-07 15:25:00 +0300
commit4cb046a6b8b37a0f328fa5b86fbd573ca3f0dc33 (patch)
treee4ed791f3cfbe938308095ef1f4d123c72a323a2 /js/src/dropdown.js
parent708a3a0e398f6c01f00283941cd6a4aca9f66322 (diff)
Boost `execute` function, being able to handle arguments (#36652)
Diffstat (limited to 'js/src/dropdown.js')
-rw-r--r--js/src/dropdown.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index b05d92cf78..d37886d898 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,
@@ -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])
}
}