mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Clear selection after creating a highlight on release
This commit is contained in:
parent
92d5851aa9
commit
5891dbae10
2 changed files with 2 additions and 1 deletions
File diff suppressed because one or more lines are too long
|
|
@ -427,6 +427,7 @@ export function HighlightsLayer(props: HighlightsLayerProps): JSX.Element {
|
|||
useEffect(() => {
|
||||
if (props.highlightOnRelease && selectionData?.wasDragEvent) {
|
||||
handleAction('create')
|
||||
setSelectionData(null)
|
||||
}
|
||||
}, [selectionData])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue