aboutsummaryrefslogtreecommitdiff
path: root/js/src/modal.js
diff options
context:
space:
mode:
authorRohit Sharma <[email protected]>2021-02-22 12:31:04 +0530
committerGitHub <[email protected]>2021-02-22 09:01:04 +0200
commitdc5e3328c12058de7fb6404edbe5dcee61f3400f (patch)
treeef141013ee4df32fbd3e581d9647e71f713bb043 /js/src/modal.js
parentd983744d12be0937bb1aaef06057385d9b553e0c (diff)
downloadbootstrap-dc5e3328c12058de7fb6404edbe5dcee61f3400f.tar.xz
bootstrap-dc5e3328c12058de7fb6404edbe5dcee61f3400f.zip
Allow constructors to accept a CSS selector (#32245)
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
Diffstat (limited to 'js/src/modal.js')
-rw-r--r--js/src/modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index 79a2f143a..4f42e733e 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -83,7 +83,7 @@ class Modal extends BaseComponent {
super(element)
this._config = this._getConfig(config)
- this._dialog = SelectorEngine.findOne(SELECTOR_DIALOG, element)
+ this._dialog = SelectorEngine.findOne(SELECTOR_DIALOG, this._element)
this._backdrop = null
this._isShown = false
this._isBodyOverflowing = false