Skip to content

Commit

Permalink
Image URL Input: use new anchor prop for Popover (#43784)
Browse files Browse the repository at this point in the history
* Image URL Input: use new anchor prop for Popover

* Prevent value from being `null`
  • Loading branch information
ciampo authored Sep 5, 2022
1 parent d1e8c9f commit 9e8f07c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ const ImageURLInputUI = ( {
/>
{ isOpen && (
<URLPopover
anchorRef={ buttonRef }
// `anchor` should never be `null`
anchor={ buttonRef.current ?? undefined }
onFocusOutside={ onFocusOutside() }
onClose={ closeLinkUI }
renderSettings={ () => advancedOptions }
Expand Down

0 comments on commit 9e8f07c

Please sign in to comment.