Skip to content

Commit

Permalink
Refactor #869
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Apr 29, 2019
1 parent a3e1eb2 commit ecd9f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ export class Calendar extends Component {
}

isOutsideClicked(event) {
return !(this.container.isSameNode(event.target) || this.isNavIconClicked(event) || 
return this.container && !(this.container.isSameNode(event.target) || this.isNavIconClicked(event) || 
this.container.contains(event.target) || (this.panel && this.panel.contains(event.target)));
}

Expand Down

0 comments on commit ecd9f90

Please sign in to comment.