Skip to content

Commit 8bef15b

Browse files
authored
Fix: Perform HTMLDialogElement.close on drawer before animating closed (fixes #628) (#629)
1 parent 230a2fa commit 8bef15b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/views/drawerView.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ class DrawerView extends Backbone.View {
221221
if (!this._isVisible) return;
222222
this._useMenuPosition = false;
223223

224+
a11y.popupClosed($toElement);
225+
224226
this._isCustomViewVisible = false;
225227
shadow.hide();
226228

@@ -233,7 +235,6 @@ class DrawerView extends Backbone.View {
233235
$('.js-nav-drawer-btn').attr('aria-expanded', false);
234236
Adapt.trigger('drawer:closed');
235237

236-
a11y.popupClosed($toElement);
237238
this._isVisible = false;
238239
a11y.scrollEnable('body');
239240
this.$('.js-drawer-holder').removeAttr('role');

0 commit comments

Comments
 (0)