We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9111150 + c520219 commit 56025f5Copy full SHA for 56025f5
packages/text-annotator-react/src/TextAnnotatorPopup/TextAnnotatorPopup.tsx
@@ -72,9 +72,7 @@ export const TextAnnotatorPopup = (props: TextAnnotationPopupProps) => {
72
73
useEffect(() => {
74
const annotationSelector = annotation?.target.selector;
75
- if (!annotationSelector) return;
76
-
77
- setOpen(isRevived(annotationSelector));
+ setOpen(annotationSelector?.length > 0 ? isRevived(annotationSelector) : false);
78
}, [annotation]);
79
80
0 commit comments