This commit is contained in:
Dmitriy Lyubimov 2025-05-02 08:45:46 +00:00 committed by GitHub
commit 6413dcfbe0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class Offcanvas extends BaseComponent {
new ScrollBarHelper().hide() new ScrollBarHelper().hide()
} }
this._element.setAttribute('aria-modal', true) this._element.setAttribute('aria-modal', Boolean(this._config.backdrop))
this._element.setAttribute('role', 'dialog') this._element.setAttribute('role', 'dialog')
this._element.classList.add(CLASS_NAME_SHOWING) this._element.classList.add(CLASS_NAME_SHOWING)