1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-10 15:44:51 +02:00

minor jQuery.hasclass removal (#28158)

This commit is contained in:
Joshua Wilson
2019-02-11 08:15:03 -05:00
committed by XhmikosR
parent 62277bc58e
commit fdbb5db919
2 changed files with 76 additions and 49 deletions

View File

@@ -245,7 +245,7 @@ class Modal {
this._element.removeAttribute('aria-hidden')
this._element.setAttribute('aria-modal', true)
if ($(this._dialog).hasClass(ClassName.SCROLLABLE)) {
if (this._dialog.classList.contains(ClassName.SCROLLABLE)) {
this._dialog.querySelector(Selector.MODAL_BODY).scrollTop = 0
} else {
this._element.scrollTop = 0