mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
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 <geo.sotis@gmail.com>
This commit is contained in:
@@ -89,6 +89,8 @@ class Backdrop {
|
||||
...Default,
|
||||
...(typeof config === 'object' ? config : {})
|
||||
}
|
||||
|
||||
config.rootElement = config.rootElement || document.body
|
||||
typeCheckConfig(NAME, config, DefaultType)
|
||||
return config
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user