Skip to content

Commit 9ce6e88

Browse files
committed
Cleanup
1 parent a439ff7 commit 9ce6e88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/text-annotator-react/src/TextAnnotatorPopup/TextAnnotatorPopup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export const TextAnnotatorPopup = (props: TextAnnotationPopupProps) => {
126126

127127
const onClose = () => r?.cancelSelected();
128128

129-
return isOpen && selected.length > 0 ? (
129+
return isOpen && annotation ? (
130130
<FloatingPortal>
131131
<FloatingFocusManager
132132
context={context}
@@ -135,7 +135,7 @@ export const TextAnnotatorPopup = (props: TextAnnotationPopupProps) => {
135135
returnFocus={false}
136136
initialFocus={initialFocus}>
137137
<div
138-
className="r6o-popup r6o-text-popup not-annotatable"
138+
className="a9s-popup r6o-popup annotation-popup r6o-text-popup not-annotatable"
139139
ref={refs.setFloating}
140140
style={floatingStyles}
141141
{...getFloatingProps()}

0 commit comments

Comments
 (0)