Group creation - Focus doesn't auto-return to search box after adding a user
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Expected Result:
Focus should be in search box so user can quickly search for another member of the group
Actual Result:
Focus is not in search box after adding a user to the group.
Action Performed:
- Log in to staging.expensify.cash
- Click on the + button
- Click on New Group
- Search for a user and select it
Workaround:
User has to manually go back to the search box each time a user is selected.
Platform:
Where is this issue occurring?
Web ✔️ iOS Android Desktop App ✔️ Mobile Web
Version Number: 1.0.24-1
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/44479856/115266958-a977ab80-a106-11eb-9ae1-c71579530576.mp4
Expensify/Expensify Issue URL:
From @mallenexpensify https://expensify.slack.com/archives/C01GTK53T8Q/p1618675563363700
ISSUE: When creating a new group chat, after selecting a person the cursor doesn't auto-return to the search box to add more people, you have to click the search box each time. Desktop Version 1.0.22-1
Triggered auto assignment to @slafortune (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
Triggered auto assignment to @sophiepintoraetz (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
I've actually experienced this myself recently/able to reproduce using the outlined steps.
Triggered auto assignment to @TomatoToaster (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Actually, I think it should be daily as per this SO
Dang this is an annoying bug. I'd actually like to work on fixing this one so I can get more experience with e.cash.
@sophiepintoraetz, I still think weekly makes sense for this one. I couldn't find anything in the S/O about this type of issue being a daily, but I might have just missed something. Was there something in particular that let you know this should be a daily?
@TomatoToaster - I might have been conflating practises here but my understanding is that Daily is assigned so that the triager looks at it, then may determine another timeframe?

Ahhh Ok yes. I see what you mean. Well it being a daily did make me check the ticket immediately so you might be right 😂 .
I'll provide an update when I get time for this one next.
Ok drafted up a PR to fix this. The code change will fix this problem, but it's a little hacky so I'm not satisfied with it yet (using a ref of a ref). I might tweak it be cleaner before putting it for review. I also noticed that the search bar is not being focused immediately when the component is opened. I'm going to try and see if there is a fix for that too.
PR is up for this and it's completed. Just ran into some trouble when testing this on dev (specifically ios/android). It'll be up for review soon.