Cannot select formatting from gear menu in editor when text is highlighted on iOS

AI-generated summary

seanblue reports a long-standing issue on iPhones where formatting options from the gear menu in the editor cannot be selected when text is highlighted. The issue occurs when highlighting text, tapping the gear icon, and attempting to apply formatting like “Hide Details” or “Blur Spoiler”. The highlight effect appears to have a higher z-index, obscuring the menu. A video demonstrating the problem is included. chapoi is able to reproduce the issue and explains that a move to a more mobile-friendly DMenu solution is underway, which will resolve it. joffreyjaffeux links a GitHub pull request (https://github.com/discourse/discourse/pull/33467) which is expected to fix the problem.

This has been a major issue for a while on my iPhone. It’s easy to reproduce as long as you have enough text highlighted.

  1. Write a bunch of text in the editor
  2. Highlight the text
  3. Tap the gear icon in the editor
  4. Try to select “Hide Details” or “Blur Spoiler” (two I use a lot that are supposed to wrap the highlighted text)

It should select the menu option with a single tap, but it just doesn’t work. You can also see the highlight coloring even after the gear menu is opened even though the text itself isn’t visible. It’s as if the highlight effect has a higher z-index than the gear menu, or something along those lines.

See the video below. You can’t actually seem my taps, but the parts where “Hide Details” is blue is when I tried to tap it.


3 Likes

Hey @seanblue ,

I can repro your issue but I can’t see why the (iphone) text selection is acting up like this.

Fortunately, we are just in the process of moving those dropdowns to our more mobile-friendly DMenu solution, so thankfully, the issue will be resolved regardless soon.

I think that should fix it:

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

Thanks for the report.

2 Likes

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