Getting the following odd behaviour when opening the composer. Resolved by tapping again on it, but very off-putting:
Defniitely see this as well, on my iPhone X.
Sorry, I am not following the video. What exactly are you reporting, and can you repro it here or on try?
iPhone X, Safari.
Tap “New Topic”
Composer appears without header visible, with cursor positioned halfway down the text box. Typing any text causes the cursor to move but no text is shown.
Tapping on the text box restores normal behaviour.
OK, I’ve edited your post to make it clearer what it is you’re reporting; I can repro this @awesomerobot
I can reproduce exactly the same thing using meta in safari on iPhone 7 (latest iOS), so this isn’t limited to iPhone X.
It is related to focus, we can not give any element focus when clicking new topic
Should be fixed by:
@tgxworld it’s unclear to me what
autofocus was trying to achieve, so I mostly revert this regression from your commit Sync editor and preview when preview is updated. · jjaffeux/discourse@5b965ab · GitHub I let you modify what your were trying to fix with it.
Hmm there is a scenario where opening a composer with a draft loaded wouldn’t focus on the composer which I thought was weird.
Yes but mobile has to be super careful about setting focus because it will pop keyboard and take up 50% of the screen in doing so, shifting everything around. Every time you set focus, think “What happens in this scenario on mobile?”