Created
May 30, 2019 06:31
-
-
Save steelydylan/e7ac2f6b4f8bffb21c6f66469844296f to your computer and use it in GitHub Desktop.
ツールチップのマウスオーバーマウスリーブ、よく使うからメモ!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hoverOnCropList = () => { | |
clearTimeout(this.state.timeout); | |
this.setState({ | |
isCropListOpen: true | |
}); | |
} | |
leaveFromCropList = () => { | |
const timeout = setTimeout(() => { | |
this.setState({ | |
isCropListOpen: false | |
}) | |
}, 500); | |
this.setState({ | |
timeout | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment