diff options
| author | Nagarjun Bodduna <[email protected]> | 2021-05-10 23:47:53 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-10 21:17:53 +0300 |
| commit | 741fa589d027c2d16bff844e45a08c842f5f7e04 (patch) | |
| tree | db1823b7d11cd5558d630eaffd64866cdfbef0d5 /js/src | |
| parent | 308ffba7930a33b93d0366ad6c19336f907e60da (diff) | |
| download | bootstrap-741fa589d027c2d16bff844e45a08c842f5f7e04.tar.xz bootstrap-741fa589d027c2d16bff844e45a08c842f5f7e04.zip | |
Fix backdrop `rootElement` not initialized in Modal (#33853)
* Initialize default value of rootElement before using
* Remove redundant test | put rootElement tests together
Co-authored-by: GeoSot <[email protected]>
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/util/backdrop.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/util/backdrop.js b/js/src/util/backdrop.js index 775c09ec0..ad9fcb92f 100644 --- a/js/src/util/backdrop.js +++ b/js/src/util/backdrop.js @@ -89,6 +89,8 @@ class Backdrop { ...Default, ...(typeof config === 'object' ? config : {}) } + + config.rootElement = config.rootElement || document.body typeCheckConfig(NAME, config, DefaultType) return config } |
