Skip to content

Commit d34e17f

Browse files
committed
Behavior bugfix
1 parent 0cd547d commit d34e17f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
autoUpdate,
66
inline,
77
offset,
8+
flip,
89
shift,
910
useDismiss,
1011
useFloating,
@@ -46,6 +47,7 @@ export const TextAnnotatorPopup = (props: TextAnnotationPopupProps) => {
4647
middleware: [
4748
offset(10),
4849
inline(),
50+
flip(),
4951
shift({ mainAxis: false, crossAxis: true, padding: 10 })
5052
],
5153
whileElementsMounted: autoUpdate

0 commit comments

Comments
 (0)