Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(dialog): Release focus after style changes on close
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiomkar committed Nov 8, 2018
1 parent ebdb084 commit 52cd2dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mdc-dialog/foundation.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ class MDCDialogFoundation extends MDCFoundation {

this.isOpen_ = false;
this.adapter_.notifyClosing(action);
this.adapter_.releaseFocus();
this.adapter_.addClass(cssClasses.CLOSING);
this.adapter_.removeClass(cssClasses.OPEN);
this.adapter_.removeBodyClass(cssClasses.SCROLL_LOCK);
Expand Down Expand Up @@ -274,6 +273,7 @@ class MDCDialogFoundation extends MDCFoundation {
this.animationTimer_ = 0;
this.adapter_.removeClass(cssClasses.OPENING);
this.adapter_.removeClass(cssClasses.CLOSING);
this.adapter_.releaseFocus();
}

/**
Expand Down

0 comments on commit 52cd2dc

Please sign in to comment.