-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$500] Android - Profile-After selecting pronoun, keypad remains open and shown in profile page #30527
Comments
Triggered auto assignment to @puneetlath ( |
Job added to Upwork: https://www.upwork.com/jobs/~01ff1fb12e6fe58887 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Can't reproduce on the last main But if there are any very specific cases, we can always add Keyboard.dismiss() App/src/pages/settings/Profile/PronounsPage.js Lines 79 to 81 in 3865284
Or call Keyboard.dismiss() when we leave the screen using
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Android - Profile-After selecting pronoun, keypad remains open and shown in profile page What is the root cause of that problem?Its not reproducible on the latest build but in this issue, it was reproducible in the newer builds, so I think it should be fixed here also. The root cause is the use of keyboardShouldPersistTaps="always" on SectionList used in the BaseOptionsList. This property essentially dictates that the keyboard should remain open even after a tap on the screen (like selecting an any result). What changes do you think we should make in order to solve the problem?We already faced this issue many times before, I think we should remove keyboard before going away from the screen and it should be done in the We should compose const keyboardState = useKeyboardState();
useEffect(() => {
// We need to have this prop to remove keyboard before going away from the screen, to avoid previous screen look weird for a brief moment,.
// described here https://reactnavigation.org/docs/preventing-going-back/#limitations
const beforeRemoveSubscription = navigation.addListener('blur', () => {
if (!keyboardState) {
return;
}
Keyboard.dismiss();
});
return beforeRemoveSubscription;
}, []); Result |
I think this will be fixed in #30268 |
@puneetlath, @sobitneupane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Still on hold. |
Looks like this is no longer blocked actually. I asked QA to re-test it. |
Looks like #30268 fixed it. Closing! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.92-1
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
In pronoun page, after selecting pronoun, keypad must not be shown in profile page
Actual Result:
In pronoun page, after selecting pronoun, keypad remains open and shown in profile page until selected pronoun is shown
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Bug6253572_1698425341533.pronoun.mp4
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: