Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fix(Dropdown): Only call stopPropagation if event exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Shestopal committed Oct 25, 2018
1 parent be44d2d commit c48b08f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default class Dropdown extends React.Component {
};

toggle = e => {
e.stopPropagation();
if (e) e.stopPropagation();

if (this.state.isOpen) {
this.hide();
Expand Down

0 comments on commit c48b08f

Please sign in to comment.