Skip to content

Commit

Permalink
Use the HTML string of the anchor onto which the linkcontrol is attac…
Browse files Browse the repository at this point in the history
…hed as the remount key
  • Loading branch information
getdave committed Nov 5, 2021
1 parent bab822f commit 4fc7fad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/format-library/src/link/inline.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ function InlineLinkUI( {
);
}

const linkControlRemountKey = anchorRef?.outerHTML;

return (
<Popover
anchorRef={ anchorRef }
Expand All @@ -222,7 +224,7 @@ function InlineLinkUI( {
position="bottom center"
>
<LinkControl
key={ anchorRef }
key={ linkControlRemountKey }
value={ linkValue }
onChange={ onChangeLink }
onRemove={ removeLink }
Expand Down

0 comments on commit 4fc7fad

Please sign in to comment.