You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$500] Web - Password protected PDF password field stays in focus even on error #27281
Press enter to submit and observe that even though error was triggered, field still has focus
Expected Result:
App should lose focus from the password field after error as we do for all the fields throughout the app
Actual Result:
App keeps the focus on the password field after error in password protected PDF preview
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.68.12 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: Any additional supporting documentation
changed the title [-]Web - Password protected PDF password field stays in focus even on error[/-][+][$500] Web - Password protected PDF password field stays in focus even on error[/+]on Sep 12, 2023
This feels pretty consistent in this password case. We're keeping focused on the only thing you can interact with and you'd want to retype your password or leave. Closing.
Activity
namhihi237 commentedon Sep 12, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
App keeps the focus on the password field after an error in password protected PDF preview
What is the root cause of that problem?
Input gets focused when we enter the page.
When the user presses the submit button, we don't have the logic to update it to un-focus.
App/src/components/PDFView/PDFPasswordForm.js
Lines 91 to 96 in 467f396
What changes do you think we should make in order to solve the problem?
We should blur every submission.
Result:
Screen.Recording.2023-09-12.at.23.17.59.mov
What alternative solutions did you explore? (Optional)
N/A
[-]Web - Password protected PDF password field stays in focus even on error[/-][+][$500] Web - Password protected PDF password field stays in focus even on error[/+]melvin-bot commentedon Sep 12, 2023
Job added to Upwork: https://www.upwork.com/jobs/~014ece584d36e5bf8f
melvin-bot commentedon Sep 12, 2023
Triggered auto assignment to @garrettmknight (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Sep 12, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Sep 12, 2023
Triggered auto assignment to @CortneyOfstad (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.melvin-bot commentedon Sep 12, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @burczu (
External)ishpaul777 commentedon Sep 12, 2023
Proposal
Problem
Password protected PDF password field stays in focus even on error
Root cause
We are not removing focus from input when there is a error
changes
Blur textinput if there is a errortext.
hoangzinh commentedon Sep 13, 2023
It seems expected behavior since this change #26025
studentofcoding commentedon Sep 13, 2023
Yup, agree, I also think it's expected behaviour
dhanashree-sawant commentedon Sep 13, 2023
It is inconsistent with other fields throughout the app
garrettmknight commentedon Sep 14, 2023
This feels pretty consistent in this password case. We're keeping focused on the only thing you can interact with and you'd want to retype your password or leave. Closing.