Skip to content

Commit 49293e7

Browse files
committed
autoUpdate
1 parent 5797c53 commit 49293e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/lexical-react/src/shared/LexicalMenu.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import type {JSX} from 'react';
1010

1111
import {
12+
autoUpdate,
1213
flip,
1314
FloatingFocusManager,
1415
FloatingList,
@@ -545,6 +546,7 @@ export function LexicalMenu<TOption extends MenuOption>({
545546
open: isOpen,
546547
placement: 'bottom-start',
547548
strategy: 'fixed',
549+
whileElementsMounted: autoUpdate,
548550
});
549551

550552
const labelsRef = useRef<Array<string | null>>([]);

0 commit comments

Comments
 (0)