Skip to content

[HOLD for payment 2025-01-02] [$250] iOS - Profile - Display Name - Keyboard blinks when focus is changed #53078

Closed

Description

@lanitochka17

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: 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:

  1. Open the mobile app on iOS
  2. Navigate to settings > profile > display name
  3. Tap into First Name so that the keyboard pulls up
  4. Tap into Last Name (keyboard should stay up)
  5. 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 evidence
Bug6642786_1729655434200.E-16685.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021861288508956384711
  • Upwork Job ID: 1861288508956384711
  • Last Price Increase: 2024-12-10
  • Automatic offers:
    • DylanDylann | Reviewer | 105347513
Issue OwnerCurrent Issue Owner: @kadiealexander

Activity

  1. added
    Daily
    Bug
    on Nov 25, 2024
  2. melvin-bot commented on Nov 25, 2024

    @melvin-bot

    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.

  3. jliexpensify commented on Nov 25, 2024

    @jliexpensify
    Contributor

    ios <> Android swap

  4. added
    External
    on Nov 26, 2024
  5. melvin-bot commented on Nov 26, 2024

    @melvin-bot
  6. 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
  7. added
    Help Wanted
    on Nov 26, 2024
  8. melvin-bot commented on Nov 26, 2024

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann (External)

  9. huult commented on Nov 26, 2024

    @huult
    Contributor

    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:

    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 keyboardType set to name-phone-pad for the First Name and Last Name inputs resolves the issue.

  10. DylanDylann commented on Nov 28, 2024

    @DylanDylann
    Contributor

    I can't reproduce this bug on IOS simulators

  11. 97 remaining items

  12. MariaHCD commented on Jan 15, 2025

    @MariaHCD
    Contributor

    Sounds like we all agree to keep our PR as is 👍🏼

    @kadiealexander I think we can move forward here?

  13. kadiealexander commented on Jan 16, 2025

    @kadiealexander
    Contributor

    Awesome! Payment summary is here for the NewDot payment reviewer.

  14. moved this from Hold for Payment to Done in #expensify-bugson Jan 16, 2025
  15. DylanDylann commented on Jan 16, 2025

    @DylanDylann
    Contributor

    @kadiealexander I still get paid via Upwork

  16. kadiealexander commented on Jan 17, 2025

    @kadiealexander
    Contributor

    Ah sorry for that @DylanDylann, I've issued payment and updated the summary.

  17. shawnborton commented on Jan 20, 2025

    @shawnborton
    Contributor

    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!

  18. rezkiy37 commented on Jan 20, 2025

    @rezkiy37
    Contributor

    @shawnborton, yes, we did. #54293.

  19. shawnborton commented on Jan 20, 2025

    @shawnborton
    Contributor

    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!

  20. rezkiy37 commented on Jan 20, 2025

    @rezkiy37
    Contributor

    @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.

    Image
  21. shawnborton commented on Jan 20, 2025

    @shawnborton
    Contributor

    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 :)

  22. shawnborton commented on Jan 20, 2025

    @shawnborton
    Contributor

    Actually just tested on staging, and I still see the emojis taking a larger font size... is that expected?

    Image

  23. rezkiy37 commented on Jan 20, 2025

    @rezkiy37
    Contributor

    Ah, yeah. We have changed only inputs on the profile display name page. Nowhere else.

  24. shawnborton commented on Jan 20, 2025

    @shawnborton
    Contributor

    Ah okay, apologies for misunderstanding and thanks for clarifying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternalretest-weekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions