Skip to content

Commit

Permalink
feat(list): Update menu test to check for focus
Browse files Browse the repository at this point in the history
  • Loading branch information
williamernest committed Jun 4, 2018
1 parent adc1ece commit 9785d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mdc-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class MDCMenu extends MDCComponent {
this.previousFocus_ = document.activeElement;
},
restoreFocus: () => {
if (this.previousFocus_) {
if (this.previousFocus_ && this.previousFocus_.focus) {
this.previousFocus_.focus();
}
},
Expand Down

0 comments on commit 9785d07

Please sign in to comment.