Make sure focused highlight is reset when there is new selection data
This commit is contained in:
@ -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({
|
||||
|
||||
Reference in New Issue
Block a user