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 committed Sep 6, 2022
1 parent 563ac2c commit dd2e54c
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 dd2e54c

Please sign in to comment.