Users report an issue on mobile where they cannot add people to private messages (PMs) in the Discourse forum, with the input not registering and only showing a default user (@Rishi_Bokhoree). The problem appears to affect Android devices (Chrome, Samsung Internet) and possibly iOS, but not Safari. Multiple users confirm the bug, with reports indicating it occurs on non-admin accounts and is linked to mobile view. A developer, sam, identifies the issue as related to the user-selector component and select2 library, which complicates debugging. A quick fix by j.jaffeux has been deployed on both Meta and Infinite Flight, with a more comprehensive solution planned. schyllberg thanks the team for the swift resolution.
I cannot reproduce on my own instance using my own account, but can repro with a non-admin account. So looks like the issue might be for non-staff users only. Nothing in Ruby/JS logs.
The reason I am assigning this to @j.jaffeux is cause this issue is made about 9000 times harder to debug due to select2.
With select2, we always replace the original DOM nodes with a wrapped version using select 2, which means finding the original CSS responsible for the width of the element is a nightmare ^ 2.
So my suggestion is just to replace user-selector with the new component and then it should be trivial to add the missing width there.