Skip to content

Commit

Permalink
Update overlay-mixin.html
Browse files Browse the repository at this point in the history
  • Loading branch information
pdgago authored Feb 16, 2017
1 parent a651c48 commit 221b54a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion overlay-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
type: Boolean,
readOnly: true,
value: false
},

noAutoFocus: {
type: Boolean,
value: false
}

}
Expand Down Expand Up @@ -129,7 +134,10 @@

this._setCanceled(false);
this.style.display = '';
this.focus();

if (!this.noAutoFocus) {
this.focus();
}

this.dispatchEvent(new CustomEvent('overlay-opened', {
detail: {
Expand Down

0 comments on commit 221b54a

Please sign in to comment.