aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorJoshua Wilson <[email protected]>2019-02-11 08:15:03 -0500
committerXhmikosR <[email protected]>2019-02-20 22:05:45 +0200
commitfdbb5db9192321564fd480d4ee77a2e966312427 (patch)
tree854a2aa2fbcd4c38e47e92d30e73c5f2593b4be1 /js/src
parent62277bc58e780a5d647e5fc7c023e431f0efd44f (diff)
downloadbootstrap-fdbb5db9192321564fd480d4ee77a2e966312427.tar.xz
bootstrap-fdbb5db9192321564fd480d4ee77a2e966312427.zip
minor jQuery.hasclass removal (#28158)
Diffstat (limited to 'js/src')
-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 e2d61621d..69b77009d 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -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