diff options
| author | Joshua Wilson <[email protected]> | 2019-02-11 08:15:03 -0500 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-02-20 22:05:45 +0200 |
| commit | fdbb5db9192321564fd480d4ee77a2e966312427 (patch) | |
| tree | 854a2aa2fbcd4c38e47e92d30e73c5f2593b4be1 /js/src | |
| parent | 62277bc58e780a5d647e5fc7c023e431f0efd44f (diff) | |
| download | bootstrap-fdbb5db9192321564fd480d4ee77a2e966312427.tar.xz bootstrap-fdbb5db9192321564fd480d4ee77a2e966312427.zip | |
minor jQuery.hasclass removal (#28158)
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/modal.js | 2 |
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 |
