Regression: edit reason input not autofocussed

It looks to me as though @sam’s fix for this has regressed; in Firefox, when I click “add edit reason”, the input isn’t focussed automatically.

3 Likes

Yeah this regressed… @joffreyjaffeux can you take a look? Clicking add edit reason should definitely trigger focus, because we already clicked / tapped…

4 Likes

I’m not actually sure it “regressed” as in the code didn’t change, we still have autofocus on the input and it’s still working for me “the first time” but not on the second time.

I just pushed a commit which will make this kind of behaviour much more reliable:

https://github.com/discourse/discourse/commit/4e0c06a0b16acaf88c3899f829636ac0f1a254a9

4 Likes