-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[$1000] Double clicking on search button selects placeholder and unable to type #15632
Comments
Triggered auto assignment to @sophiepintoraetz ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @techievivek ( |
This can be worked externally. |
Job added to Upwork: https://www.upwork.com/jobs/~01af2f520108bae0a4 |
Current assignee @sophiepintoraetz is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Current assignee @techievivek is eligible for the External assigner, not assigning anyone new. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
ProposalPlease re-state the problem that we are trying to solve in this issue.Double pressing search icon on dashboard results in search input placeholder being selected and unfocused. What is the root cause of that problem?The root cause of the issue is that the second click causes the focus to shift from the new screen back to the previous screen. What changes do you think we should make in order to solve the problem?There are multiple solutions.
What alternative solutions did you explore? (Optional)
|
Please re-state the problem that we are trying to solve in this issue.Double clicking the search icon causes the input to lose focus and select the label text What is the root cause of that problem?The issue arises when the transition is still in progress and we click on the overlay, causing it to receive focus instead of the input, which remains blurred. What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)N/A |
@rjharish333 - please email - as per the instructions - to contributors@expensify.com |
ProposalPlease re-state the problem that we are trying to solve in this issue.Placeholder gets selected and search input is not focused when double-clicking on the Search icon. What is the root cause of that problem?There're 2 problems here:
If we check other messaging apps like Slack & WhatsApp, the placeholder of text input is never selectable at all, so I think we should do the same.
What changes do you think we should make in order to solve the problem?To fix 1, we need to introduce a App/src/components/OptionsSelector.js Line 340 in faff1b5
like:
This will make sure that during page transition, the placeholder does not show selected style. We can optionally use the We can pass the Line 173 in da61f36
For the above to work, this Safari hack will also needs to be removed #3613, I've tested and confirmed that removing the hack will not reintroduce the bug (that the hack is fixing) with the latest code in To fix 2, we need to add a logic to the
We need both fixes, because if we only fix 2 but not 1, the selectable style of the TextInput will flicker. What alternative solutions did you explore? (Optional)We can use ResultWorking well after the fix: Screen.Recording.2023-03-06.at.16.27.45.mp4 |
Thank you for the proposals! I'll review this after finishing a prioritized PR. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The placeholder is selected on double clicking the search icon. What is the root cause of that problem?If you double click on other buttons that open a modal, for example the The reason it doesn't close on the second click seems to be the presence of the textInput. What changes do you think we should make in order to solve the problem?In my opinion it's better to match the behaviour of the At the moment we are delaying the rendering of the In my opinion rendering the This can be easily implemented by wrapping the OptionsSelector in something like: {didScreenTransitionEnd ? ( ... ) : <FullScreenLoadingIndicator />} and removing this line. Video of my proposed behavioursearchexample.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Double clicking on search button selects placeholder and unable to type #15632 What is the root cause of that problem?Upon Double clicking on search button, on chrome and only on the macOS, the placeholder text gets highlighted and input gets disabled due to focus shift during the transition as the data from the search endpoint have also not been rendered yet in that time span. What changes do you think we should make in order to solve the problem?We should capture the transition of the side modal, during transition and when everything have not been rendered yet we should disable the placeholder or we can delay the focus. What alternative solutions did you explore? (Optional)A quick fix would be to disable the double click on the search button since it certainly does nothing and then a delayed followed click should close the modal. |
📣 @muhammadbahroz! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Format:
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@sophiepintoraetz @techievivek @mollfpr Coming from #15692, I think the expected behavior in these two issues are conflicting. In #15692, we're proposing the expected behavior should be that double clicking the search button opens and immediately close both drawers (similar to double-clicking the LHN avatar) Thoughts? |
I think both issues are similar just the way it was presented and the expected behavior differs, if i am not mistaken we should close the one |
👍🏼 Once we agree on the expected behavior, one of these issues should be closed. I'm personally leaning towards mimicking the same behavior as when double-clicking the LHN avatar. But we'll wait on @sophiepintoraetz @techievivek @mollfpr to weigh in! |
@MariaHCD expected behavior is a matter of perspective but this issue was reported first so even if you close one issue don't you think the other issue should be closed |
📣 @BhavyaKoshiya! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Format:
|
@MariaHCD For a little more context, please check this thread. This basically contains the reason why we are not using the full screen loader and showing the search input while the drawer is transitioning. |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Also if we decide to go with any of the above proposals we should put this on HOLD since there is firstly proposed solution (and all the proposals here are the same approach as it), which likely solve both issues here #15276 (comment) |
Thanks, @MariaHCD, for bringing this to the discussion. I think we can close this issue because we don't want to fix the behaviour here allowing users to type after a double click. The solution that appeals to me is just to close the right-hand panel. Any thoughts? |
Aaah, I see you have suggested the same here. @sophiepintoraetz @mollfpr any thoughts? |
I'm actually going to take this conversation internally just to make sure we're being consistent in following programme expectations. Bear with me! |
Thanks for your patience all! Given that #15692 has the expected behaviour outlined, I am going to close this issue in favour of that one. If you have made a proposal here and think your proposal will also fix #15692 - please add it there and @s77rt will review them! (@allroundexperts @getusha @muhammadbahroz) Additionally, the reporting bonus will be paid out to both @BhavyaKoshiya and @tienifr given that Conor and I missed the similarities between the two issues. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Text Input should be in focus and user should be able to write
Actual Result:
Placeholder gets selected and user is unable to write
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.78-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Screen.Recording.2023-02-24.at.6.45.09.PM.1.mov
Recording.119.mp4
Expensify/Expensify Issue URL:
Issue reported by: @BhavyaKoshiya
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1677244790953179
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: