Skip to content

[graphiql] Text selection highlight does not match / overflow the selection #4094

@Mathieu-COSYNS

Description

@Mathieu-COSYNS

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When selecting a text the selection highlight does one character before and after. It seem to append at beginning of words with selections that span across multiple lines.

20250811-1211-04.4812982.mp4

Expected Behavior

The selection highlight match the selected text.

Steps To Reproduce

Select some text over multiple lines

Environment

  • GraphiQL Version: 5.0.0 and 5.2.0
  • OS: Windows
  • Browser: Firefox and Chrome

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions