Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimon committed Oct 4, 2024
1 parent a439ff7 commit 9ce6e88
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const TextAnnotatorPopup = (props: TextAnnotationPopupProps) => {

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

return isOpen && selected.length > 0 ? (
return isOpen && annotation ? (
<FloatingPortal>
<FloatingFocusManager
context={context}
Expand All @@ -135,7 +135,7 @@ export const TextAnnotatorPopup = (props: TextAnnotationPopupProps) => {
returnFocus={false}
initialFocus={initialFocus}>
<div
className="r6o-popup r6o-text-popup not-annotatable"
className="a9s-popup r6o-popup annotation-popup r6o-text-popup not-annotatable"
ref={refs.setFloating}
style={floatingStyles}
{...getFloatingProps()}
Expand Down

0 comments on commit 9ce6e88

Please sign in to comment.