2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

use our selector engine instead of native api

This commit is contained in:
Johann-S
2019-02-20 10:45:46 +02:00
committed by XhmikosR
parent 5877306104
commit fee11fd7ae
5 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -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
}