Skip to content

Instantly share code, notes, and snippets.

@steelydylan
Created May 30, 2019 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steelydylan/e7ac2f6b4f8bffb21c6f66469844296f to your computer and use it in GitHub Desktop.
Save steelydylan/e7ac2f6b4f8bffb21c6f66469844296f to your computer and use it in GitHub Desktop.
ツールチップのマウスオーバーマウスリーブ、よく使うからメモ!
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