Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marking text works unreliable #7861

Open
jarkt opened this issue Apr 2, 2024 · 3 comments
Open

Marking text works unreliable #7861

jarkt opened this issue Apr 2, 2024 · 3 comments

Comments

@jarkt
Copy link

jarkt commented Apr 2, 2024

Issue Description

There are very annoying issues regarding the selection of text in firefox. Don't know what or why happens, but the Apollo Server frontend doesn't act like a normal website when you trying to select text.
In the screenshot I tried to select just the string content of the result without the quotation marks. It's not reliable possible.
You can see that the string after the starting quotation mark is selected till the end, where the ending quotation mark is (unwanted) selected. But if I copy it, the first character ("e") is missing and the last quotation mark is also not a part of it. 🤯

Same happens in the query area. It probably has something to do with the function that marks the current selected string content.

grafik

Link to Reproduction

https://local

Reproduction Steps

No response

@cheapsteak
Copy link
Member

Hi there, I'm having trouble reproducing this behaviour

Screen.Recording.2024-04-19.at.1.12.14.PM.mov

Would you be able to provide reproduction steps? 🙏

Any chance it could be an extension getting in the way?

@jarkt
Copy link
Author

jarkt commented Apr 22, 2024

I have the same behavior in firefox and chromium, also in incognito mode with deactivated plugins. The selected text doesn't match the content of the clipboard. And the selection changes while dragging.

Bildschirmaufnahme.2024-04-22.14.27.57.mp4

https://youtu.be/vxGdnZcTrhI

@cheapsteak
Copy link
Member

Hi there,

I believe I can repro this now

Whenever text is selected across multiple lines, the highlight indicator expands past the actual selection text by 1 character

The actual selected text is still correct; if copied and pasted, the contents match where the keyboard/mouse was, but doesn't match the selection indicator

Logged a ticket in our Explorer board as this seems to be limited to Explorer (and specifically the editor panels)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants