Skip to content

Commit

Permalink
fix: Quick test for issue #282
Browse files Browse the repository at this point in the history
  • Loading branch information
ellinge committed Aug 11, 2019
1 parent 26ffc49 commit 5125c7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ class DropdownTreeSelect extends Component {
showDropdown: /initial|always/.test(showDropdown) || prevState.showDropdown === true,
...this.treeManager.getTreeAndTags(),
}))
if (showDropdown === 'initial') {
setTimeout(() => {
document.addEventListener('click', this.handleOutsideClick, false)
}, 1)
}
}

resetSearchState = () => {
Expand Down

0 comments on commit 5125c7a

Please sign in to comment.