Unable to select text with a triple click

AI-generated summary

Users report an issue where triple-click text selection fails in replies on Chromium browsers (Linux and macOS), but works in Firefox and the original post. Saif first noticed the problem, with Sam confirming it’s reproducible on Chromium Linux. supermathie notes the text is briefly selected but then unselected, and the clipboard captures the text with extra formatting. Andrew_Rowe confirms the issue is limited to replies, not the original post. Don identifies user-select: none on .post-controls as the cause, suggesting it should only apply to touchscreens. saquetim confirms a fix is in progress with a PR (#30628), though it may take a few days to deploy.

Not sure if this is exactly related but I wanted to point out

CleanShot 2025-01-02 at 18.33.19

notice that I am unable to select the text in the sentence unless I manually select it all, this was never the case till somewhat recently. This behavior is sometimes reproducible

Using the latest Arc browser on MacOS

6 Likes

Yes, this is consistently reproducible in chromium (not reproducible on Firefox)

Triple click on last paragraph on Chromium Linux is selecting and then unselecting the text.

6 Likes

What does make it to the clipboard is e.g.:

--- CHANGED: PRIMARY
Formats: TARGETS,UTF8_STRING
'Triple click on last paragraph on Chromium Linux is selecting and then unselecting the text.\n\n4\n\n\u200b\n\u200b\n\nReply\n'
2 Likes

This could potentially be related to post action refactor @saquetim recently landed given the post actions are there.

2 Likes

Also I note it doesn’t happen in the OP, only in replies.

2 Likes

Same here on Chromium Linux

Same, in firefox linux work fine

Also seeing on Chromium Linux triple click works fine on OP but not replies

It seems the user-select: none cause this on nav.post-controls. I think it should be active only on touchscreen. :thinking:

4 Likes

Thanks @Don this is very helpful.

Looks like @saquetim has a fix planned, we will post about it tomorrow!

6 Likes

I have a PR to address the issue, but we’re discussing possible implications.

It may take a couple of days before we fix this.

8 Likes

https://github.com/discourse/discourse/pull/30628

The PR above addresses this issue.

6 Likes

This topic was automatically closed after 3 days. New replies are no longer allowed.