Open/close chart panel automatically

This commit is contained in:
Thomas Nordquist
2019-06-16 20:18:26 +02:00
parent 1d77af5e22
commit b4b6c214cb
2 changed files with 67 additions and 20 deletions

View File

@@ -26,6 +26,7 @@ function ChartPreview(props: Props) {
topic: props.treeNode.path(),
dotPath: props.literal.path,
})
setOpen(false)
}, [props.literal.path, props.treeNode])
const mouseOver = React.useCallback(() => {