Clear selection after creating a highlight on release

This commit is contained in:
Jackson Harper 2023-02-02 18:28:52 +08:00
parent 92d5851aa9
commit 5891dbae10
2 changed files with 2 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -427,6 +427,7 @@ export function HighlightsLayer(props: HighlightsLayerProps): JSX.Element {
useEffect(() => {
if (props.highlightOnRelease && selectionData?.wasDragEvent) {
handleAction('create')
setSelectionData(null)
}
}, [selectionData])