Skip to content

Commit

Permalink
Update overlay-container.html
Browse files Browse the repository at this point in the history
  • Loading branch information
pdgago authored Dec 3, 2018
1 parent f7d3717 commit 28f18e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion overlay-container.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@
__onOverlayClosed(evt) {
const overlay = evt.composedPath()[0];
const lastOverlay = this.__getLastOverlay();
if (lastOverlay && !this.__isOverlayOrDescendantFocused(lastOverlay)) {
if ((lastOverlay) &&
(!lastOverlay.noAutoFocus) &&
(!this.__isOverlayOrDescendantFocused(lastOverlay))) {
lastOverlay.focus();
}
this.__updateBackdrop(overlay);
Expand Down

0 comments on commit 28f18e9

Please sign in to comment.