diff options
author | GeoSot <geo.sotis@gmail.com> | 2021-04-20 08:32:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 08:32:52 +0300 |
commit | 079f2cd90c247225eb71dff4d514faf50f653416 (patch) | |
tree | b72d54149b14fb4179456bc7ec595b6b0977d498 /js/src | |
parent | 0bbe45cd977ae69f11b4cdd55e5d5be08e4a137a (diff) |
Offcanvas.js: If scroll is allowed, should allow focus on other elements (#33677)
Diffstat (limited to 'js/src')
-rw-r--r-- | js/src/offcanvas.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/offcanvas.js b/js/src/offcanvas.js index 2b6335b391..7fcdfb48a8 100644 --- a/js/src/offcanvas.js +++ b/js/src/offcanvas.js @@ -112,6 +112,7 @@ class Offcanvas extends BaseComponent { if (!this._config.scroll) { scrollBarHide() + this._enforceFocusOnElement(this._element) } this._element.removeAttribute('aria-hidden') @@ -121,7 +122,6 @@ class Offcanvas extends BaseComponent { const completeCallBack = () => { EventHandler.trigger(this._element, EVENT_SHOWN, { relatedTarget }) - this._enforceFocusOnElement(this._element) } const transitionDuration = getTransitionDurationFromElement(this._element) |