mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-24 14:04:09 +03:00
Offcanvas.js: If scroll is allowed, should allow focus on other elements (#33677)
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user