aboutsummaryrefslogtreecommitdiff
path: root/js/src/modal.js
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2019-02-20 10:45:46 +0200
committerXhmikosR <[email protected]>2019-02-20 22:05:45 +0200
commitfee11fd7ae278baed6ca09caf7d5a83c40d1c23a (patch)
tree8efdd5d0376f9b1dbc404e33e1dfdee6e496b537 /js/src/modal.js
parent58773061048ab05f87b67cd47f10d9bf8c3f25aa (diff)
downloadbootstrap-fee11fd7ae278baed6ca09caf7d5a83c40d1c23a.tar.xz
bootstrap-fee11fd7ae278baed6ca09caf7d5a83c40d1c23a.zip
use our selector engine instead of native api
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 69b77009d..0897b317a 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -246,7 +246,7 @@ class Modal {
this._element.setAttribute('aria-modal', true)
if (this._dialog.classList.contains(ClassName.SCROLLABLE)) {
- this._dialog.querySelector(Selector.MODAL_BODY).scrollTop = 0
+ SelectorEngine.findOne(Selector.MODAL_BODY, this._dialog).scrollTop = 0
} else {
this._element.scrollTop = 0
}