Shared state between two instances of Link Control in same block #35618
Labels
[Feature] Link Editing
Link components (LinkControl, URLInput) and integrations (RichText link formatting)
[Type] Bug
An existing feature does not function as intended
Description
When there are two links in one block, opening the link control and clicking "edit" on one, without saving any changes, will cause the link control of the other one to open in edit mode too. Furthermore, making an edit in one of the link controls and not saving, will cause the edited value from the first link control to show in the second link control when opened.
Step-by-step reproduction instructions
Variation: on step 3, don't make any change. On step 5 verify the second link control also shows the same value as the first.
Expected behaviour would be that a link control never open in edit mode, and that its value, or edits to its value, not be shared with other link controls in the vicinity.
Screenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: