You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Link Control: Can't switch links in the same paragraph in Firefox #58322
[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended
The fix doesn't work for me either. It seems related to the click caret placement being handled on the editor. On Chrome, when you click a new link, it moves the text caret to the location you clicked. On Firefox, it leaves the caret where it was before, thinking you are still clicking on the previous location.
Notice how the caret does not move to the new clicked location in this video:
I think this is a deeper bug, and not related to LinkControl. The same issue of the caret not being moved to the new selection happens when you close a popover from the Block Toolbar as well.
This video shows the caret, then clicking to open a popover in the block toolbar, then clicking a new spot in the same paragraph and the caret is not moved to the new location.
This seems to NOT be a bug with Link Control - you can reproduce the same issue by opening the options menu for a block and then clicking inside the same paragraph
I've done some exploration here but I don't have a solution yet. The difference is that when you focus back into the paragraph in Firefox, the calculations inside applySelection don't think that the range is equal, whereas in Chrome it does.
[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended
Activity
jeryj commentedon Jan 26, 2024
The fix doesn't work for me either. It seems related to the click caret placement being handled on the editor. On Chrome, when you click a new link, it moves the text caret to the location you clicked. On Firefox, it leaves the caret where it was before, thinking you are still clicking on the previous location.
Notice how the caret does not move to the new clicked location in this video:
Screen.Recording.2024-01-26.at.11.54.33.AM.mov
jeryj commentedon Jan 26, 2024
I think this is a deeper bug, and not related to LinkControl. The same issue of the caret not being moved to the new selection happens when you close a popover from the Block Toolbar as well.
This video shows the caret, then clicking to open a popover in the block toolbar, then clicking a new spot in the same paragraph and the caret is not moved to the new location.
Screen.Recording.2024-01-26.at.1.05.19.PM.mov
scruffian commentedon Jan 29, 2024
This seems to NOT be a bug with Link Control - you can reproduce the same issue by opening the options menu for a block and then clicking inside the same paragraph
scruffian commentedon Feb 2, 2024
I've done some exploration here but I don't have a solution yet. The difference is that when you focus back into the paragraph in Firefox, the calculations inside
applySelectiondon't think that the range is equal, whereas in Chrome it does.