-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Editing linked text popover disappears and has awkward interactions #19394
Description
Describe the bug
When editing linked text, the popover disappears resulting in confusion. After it disappears, I have to click the linked text twice to view the popover again in edit mode.
A secondary problem resulting from this is that once the popover shows the edit mode for the URL, if I click on another link without dismissing the first popover, the second link shows the same popover URL that can be edited... even if that second link doesn't use the same URL from the other link.
To reproduce
Steps to reproduce the behavior:
- Add and link a couple different words in Gutenberg.
- Click on the first link to show the popover.
- Click to edit that URL.
- Observe the popover disappear.
Second problem
5. Now click two times on the first link to pull up the popover again.
6. Notice it's now in edit mode.
7. Before clicking anything else, click the second link in the text.
8. Notice the popover for that second link is already in edit mode showing the URL from the first link which doesn't match the URL for this second link.
Expected behavior
- I expected that clicking the edit button, the popover would remain on screen and switch over to edit mode.
- When clicking away from one popover to view another link, I expected to NOT see the same popover previously opened for the first link. I wanted to see the popover for the second link.
Screenshots
Desktop (please complete the following information):
- WordPress 5.3.2
- Firefox 71.0
- Gutenberg 7.1
