mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Make sure focused highlight is reset when there is new selection data
This commit is contained in:
parent
fc286533c8
commit
cd2e35e02f
1 changed files with 4 additions and 0 deletions
|
|
@ -539,6 +539,10 @@ export function HighlightsLayer(props: HighlightsLayerProps): JSX.Element {
|
|||
}
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
setFocusedHighlight(undefined)
|
||||
}, [selectionData])
|
||||
|
||||
const dispatchHighlightMessage = (actionID: string) => {
|
||||
if (props.isAppleAppEmbed) {
|
||||
window?.webkit?.messageHandlers.highlightAction?.postMessage({
|
||||
|
|
|
|||
Loading…
Reference in a new issue