Click on "Open in new tab" control causes hyperlink creation UI popover to close #25946
Labels
[Feature] Link Editing
Link components (LinkControl, URLInput) and integrations (RichText link formatting)
[Type] Bug
An existing feature does not function as intended
Describe the bug
When creating a link on a portion of text in a paragraph block you may wish for the link to open in a new tab. There is a control in the hyperlink creation popover UI which allows you to toggle this feature on/off. However, when it is clicked the hyperlink creation UI popover closes.
This is undesirable as you may wish to toggle this feature on/off several times or you may have made a mistake. In this case the fact that the UI disappears each time a change is made is quite frustrating. I assume this is due to a re-render of the
LinkControl
component but I could be wrong.To reproduce
Steps to reproduce the behavior:
Expected behavior
The link creation UI should not close when the toggle control is interacted with. It should remain open until it is dismissed.
Screenshots
Editor version (please complete the following information):
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: