Skip to content

Editing link in list incorrectly targets first word #40348

@ashfame

Description

@ashfame

Description

Editing a link targets the wrong word

Step-by-step reproduction instructions

Have a list like following (both words should match):

Now if you click on second list item and choose to edit the link. Change the name and hit enter. First match for word Diff is first list item, which becomes a link with the text you just modified and second list item which you were modifying remains unchanged.

Screenshots, screen recording, code snippet

Screen.Recording.2022-04-14.at.2.41.59.PM.mov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] ListAffects the List Block[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions