Skip to content

Link Control: Can't switch links in the same paragraph in Firefox #58322

Closed

Description

@scruffian

In Firefox, when I have multiple links in the same paragraph I cannot easily switch between them using my mouse:

Jan-26-2024.10-25-41.mp4

This bug seems to only effect Firefox.

There is a potential fix here: #58317 (comment) though it doesn't work for me

Activity

  1. added
    [Type] Bug
    [Feature] Link Editing
    on Jan 26, 2024
  2. jeryj commented on Jan 26, 2024

    @jeryj
    Contributor

    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
  3. jeryj commented on Jan 26, 2024

    @jeryj
    Contributor

    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
  4. scruffian commented on Jan 29, 2024

    @scruffian
    ContributorAuthor

    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

  5. scruffian commented on Feb 2, 2024

    @scruffian
    ContributorAuthor

    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.

  6. added
    [Status] In Progress
    on Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Feature] Link Editing[Status] In Progress[Type] Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions