Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,8 @@ export default function NavigationLinkEdit( {
<Popover
position="bottom center"
onClose={ () => setIsLinkOpen( false ) }
anchorRef={ listItemRef.current }
// `anchor` should never be `null`
anchor={ listItemRef.current ?? undefined }
__unstableShift
>
<LinkControl
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/navigation-submenu/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,8 @@ export default function NavigationSubmenuEdit( {
<Popover
position="bottom center"
onClose={ () => setIsLinkOpen( false ) }
anchorRef={ listItemRef.current }
// `anchor` should never be `null`
anchor={ listItemRef.current ?? undefined }
__unstableShift
>
<LinkControl
Expand Down