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
[HOLD for payment 2025-01-02] [$250] iOS - Profile - Display Name - Keyboard blinks when focus is changed #53078
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorretest-weeklyApply this label if you want this issue tested on a Weekly basis by Applause
Version Number: 9.0.66-3 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Action Performed:
Open the mobile app on iOS
Navigate to settings > profile > display name
Tap into First Name so that the keyboard pulls up
Tap into Last Name (keyboard should stay up)
Tap between FN and LN a few times
Expected Result:
Keyboard shouldn’t blink when focus is changed
Actual Result:
Keyboard blinks when focus is changed
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android: Standalone
Android: HybridApp
Android: mWeb Chrome
iOS: Standalone
iOS: HybridApp
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidenceBug6642786_1729655434200.E-16685.mp4
changed the title [-]iOS - Profile - Display Name - Keyboard blinks when focus is changed[/-][+][$250] iOS - Profile - Display Name - Keyboard blinks when focus is changed[/+]on Nov 26, 2024
Edited by proposal-police: This proposal was edited at 2024-11-26 15:56:42 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Keyboard blinks when focus is changed
What is the root cause of that problem?
The soft keyboard briefly resets when switching between input fields. This occurs due to the autoCapitalize behavior in React Native's TextInput. Initially, the keyboard defaults to uppercase but adjusts to lowercase after recognizing the input state.
What changes do you think we should make in order to solve the problem?
Using the autoCapitalize property set to words for the First Name and Last Name inputs resolves the issue while retaining auto-capitalization functionality. like this ticket #16685 . Some thing like that:
Another issue led me here - I just wanted to confirm, did we end up changing the emoji font size? @rezkiy37 can you confirm and point me to the corresponding PR? Thanks!
@shawnborton Sure! We've replaced the markdown input with the regular one from RN. I didn't change some styles because the previous input parsed emojis and made them bigger.
Ah okay, so basically what happened is that we removed isMarkdownEnabled, which included styles for how emojis are displayed? I don't think I quite understand the connection between the naming, but I trust you that it did the trick :)
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorretest-weeklyApply this label if you want this issue tested on a Weekly basis by Applause
Activity
melvin-bot commentedon Nov 25, 2024
Triggered auto assignment to @jliexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.jliexpensify commentedon Nov 25, 2024
ios <> Android swap
melvin-bot commentedon Nov 26, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021861288508956384711
[-]iOS - Profile - Display Name - Keyboard blinks when focus is changed[/-][+][$250] iOS - Profile - Display Name - Keyboard blinks when focus is changed[/+]melvin-bot commentedon Nov 26, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann (
External)huult commentedon Nov 26, 2024
Edited by proposal-police: This proposal was edited at 2024-11-26 15:56:42 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Keyboard blinks when focus is changed
What is the root cause of that problem?
The soft keyboard briefly resets when switching between input fields. This occurs due to the autoCapitalize behavior in React Native's TextInput. Initially, the keyboard defaults to uppercase but adjusts to lowercase after recognizing the input state.
What changes do you think we should make in order to solve the problem?
Using the
autoCapitalizeproperty set towordsfor theFirst NameandLast Nameinputs resolves the issue while retainingauto-capitalizationfunctionality. like this ticket #16685 . Some thing like that:App/src/pages/settings/Profile/DisplayNamePage.tsx
Line 92 in 4713c7e
App/src/pages/settings/Profile/DisplayNamePage.tsx
Line 105 in 4713c7e
src/pages/settings/Profile/DisplayNamePage.tsx#L94 <View style={styles.mb4}> <InputWrapper InputComponent={TextInput} inputID={INPUT_IDS.FIRST_NAME} name="fname" label={translate('common.firstName')} aria-label={translate('common.firstName')} role={CONST.ROLE.PRESENTATION} defaultValue={currentUserDetails.firstName ?? ''} spellCheck={false} isMarkdownEnabled + autoCapitalize="words" /> </View> <View> <InputWrapper InputComponent={TextInput} inputID={INPUT_IDS.LAST_NAME} name="lname" label={translate('common.lastName')} aria-label={translate('common.lastName')} role={CONST.ROLE.PRESENTATION} defaultValue={currentUserDetails.lastName ?? ''} spellCheck={false} isMarkdownEnabled + autoCapitalize="words" /> </View>Note: If a similar case arises(Legal name), we can reuse this solution
POC
Screen.Recording.2024-11-26.at.22.54.07.mov
What alternative solutions did you explore? (Optional)
Using the
keyboardTypeset toname-phone-padfor the First Name and Last Name inputs resolves the issue.DylanDylann commentedon Nov 28, 2024
I can't reproduce this bug on IOS simulators
97 remaining items
MariaHCD commentedon Jan 15, 2025
Sounds like we all agree to keep our PR as is 👍🏼
@kadiealexander I think we can move forward here?
kadiealexander commentedon Jan 16, 2025
Awesome! Payment summary is here for the NewDot payment reviewer.
DylanDylann commentedon Jan 16, 2025
@kadiealexander I still get paid via Upwork
kadiealexander commentedon Jan 17, 2025
Ah sorry for that @DylanDylann, I've issued payment and updated the summary.
shawnborton commentedon Jan 20, 2025
Another issue led me here - I just wanted to confirm, did we end up changing the emoji font size? @rezkiy37 can you confirm and point me to the corresponding PR? Thanks!
rezkiy37 commentedon Jan 20, 2025
@shawnborton, yes, we did. #54293.
shawnborton commentedon Jan 20, 2025
Can you show me where/how in the PR we are changing the emoji size though? I'm not connecting the dots very well, apologies!
rezkiy37 commentedon Jan 20, 2025
@shawnborton Sure! We've replaced the markdown input with the regular one from RN. I didn't change some styles because the previous input parsed emojis and made them bigger.
shawnborton commentedon Jan 20, 2025
Ah okay, so basically what happened is that we removed
isMarkdownEnabled, which included styles for how emojis are displayed? I don't think I quite understand the connection between the naming, but I trust you that it did the trick :)shawnborton commentedon Jan 20, 2025
Actually just tested on staging, and I still see the emojis taking a larger font size... is that expected?
rezkiy37 commentedon Jan 20, 2025
Ah, yeah. We have changed only inputs on the profile display name page. Nowhere else.
shawnborton commentedon Jan 20, 2025
Ah okay, apologies for misunderstanding and thanks for clarifying!