Skip to content

Commit

Permalink
fix(Pop): add judge
Browse files Browse the repository at this point in the history
  • Loading branch information
vvpvvp committed Dec 4, 2018
1 parent 71441de commit 1598937
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/pop/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ class Pop {
if (this.options.events && utils.isFunction(this.options.events.hide)) {
this.options.events.hide.call(null);
}
this.popNode.setAttribute('aria-hidden', 'true');
if (this.popNode) {
this.popNode.setAttribute('aria-hidden', 'true');
}
this.isOpen = false;
this.timeout2 = setTimeout(() => {
if (this.popNode) {
Expand Down

0 comments on commit 1598937

Please sign in to comment.