Skip to content

Commit

Permalink
fix: remove animation timeout on #dropdown unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Mar 1, 2019
1 parent 543108c commit d4b8743
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/dnb-ui-lib/src/components/dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ export default class Dropdown extends Component {
}
}

componentWillUnmount() {
clearTimeout(this._hideTimeout)
}

setFocus = () => {
if (this._refInput.current && !this.props.disabled) {
this._refInput.current.focus()
Expand Down

0 comments on commit d4b8743

Please sign in to comment.