Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv committed Feb 15, 2018
1 parent 412a721 commit b2179a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/delay_hide/delay_hide.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export class EuiDelayHide extends Component {
this.shouldRender = false;
}

componentWillReceiveProps(props) {
const { hide, minimumDuration = 1000 } = props;
componentWillReceiveProps({ hide, minimumDuration = 1000 }) {
clearTimeout(this.timeout);

const visibleDuration = Date.now() - this.lastRenderedTime;
Expand Down

0 comments on commit b2179a6

Please sign in to comment.