Skip to content

Commit

Permalink
fix(Dropdown): check for blur() before calling it
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed Oct 11, 2016
1 parent 84b7b5a commit 946a29c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/Dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,9 @@ export default class Dropdown extends Component {

handleClose = () => {
debug('handleClose()')
this._dropdown.blur()
if (this._dropdown && typeof this._dropdown.blur === 'function') {
this._dropdown.blur()
}
}

toggle = () => this.state.open ? this.close() : this.open()
Expand Down

0 comments on commit 946a29c

Please sign in to comment.