Skip to content

Profile - Date picker does not auto open #93356

Closed

Description

@applause-bot

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.4.6-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #92836
Email or phone of affected tester (no customers): applausetester+sdjonisdji12d@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: User Settings

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Account > Profile.
  3. Click Date of birth.

Expected Result:

Date picker will auto open.

Actual Result:

Date field is auto focused, but date picker does not auto open.

This issue also happens when opening Date when creating expense and any step that involves date picker.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7178399_1781222492169.1.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Mita Rachim
Bug ID: 7178399

Activity

  1. applause-bot commented on Jun 12, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/a6a026c20b17e20473173374cbcb5ac2b5eea313cdd57b3f42776f0cc1715c8b

  2. added
    DeployBlockerCash
    Bug
    on Jun 12, 2026
  3. melvin-bot commented on Jun 12, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #92836

  4. melvin-bot commented on Jun 12, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Jun 12, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. MelvinBot commented on Jun 12, 2026

    @MelvinBot
    Contributor

    Issue Analysis

    Root Cause: This is an intentional behavior change from PR #92836 ("A11y feat: separate dismiss button and dont auto open the calendar"), not a side-effect bug. That PR deliberately removed the logic that auto-opened the date picker when the input received focus, because auto-opening a modal on focus is a screen-reader/VPAT accessibility violation. The field is still auto-focused, but the calendar no longer auto-opens — which is exactly what QA observed.

    The old onFocus={handleInputFocus} handler (and the hasAutoOpenedRef guard) that opened the picker on focus was removed. The picker now only opens on an explicit user action:

    This is a product decision, not a code fix. The "regression" QA flagged is the deliberate UX trade-off the PR made for accessibility. The team needs to decide between:

    1. Accept the new behavior (close this as won't-fix / expected) — the picker now opens on click/Enter/typing, which is the accessible pattern. The PR noted manual date entry is a planned follow-up.
    2. Revert PR #92836 to unblock the deploy and restore auto-open, then re-land the a11y work behind a more complete solution.

    I'd recommend looping in rushatgabhane (PR author) and the design/a11y reviewers before reverting, since a plain revert undoes a VPAT compliance fix tracked in #77550.

    Investigation details

    Symptom: Navigate to Account > Profile > Date of birth → field is auto-focused but the date picker does not auto-open. Same on expense-creation date fields. Reproducible on staging (9.4.6-0), not production — consistent with a recent merge.

    Evidence chain:

    • melvin-bot auto-assigned this deploy blocker to the merger of PR #92836.
    • The PR's only changed file is src/components/DatePicker/index.tsx.
    • The diff removes handleInputFocus/hasAutoOpenedRef (the auto-open-on-focus path) and replaces onFocus with onKeyPress/onSubmitEditing, plus switches role from PRESENTATION to COMBOBOX with accessibilityState={{expanded}} — all classic combobox a11y patterns.
    • The PR title and body confirm intent: "dont auto open the calendar" and "a future improvement to allow manual input of date will be needed ... we need this issue fixed for VPAT".

    Alternative explanations considered & ruled out: Not a race condition or measurement-timing bug — openIntentRef/calculatePopoverPosition deferral logic is unchanged and the input does focus correctly. The picker opens fine on click, confirming the open path itself works; only the focus-triggered auto-open was removed.

    Related: #77534 is the sibling a11y issue (dismiss-button announcement) from the same VPAT effort — relevant context if reverting.

    Confidence: High — single-file PR, intent stated explicitly by the author, code matches symptoms exactly.


    Next Steps for Contributor+ team:
    To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/93356) to create a draft PR.
    To refine: @MelvinBot <your feedback>
    To reject: Explain why you are rejecting Melvin's proposal.

  7. mkhutornyi commented on Jun 12, 2026

    @mkhutornyi

    This is intentional. cc: @rushatgabhane

  8. rushatgabhane commented on Jun 12, 2026

    @rushatgabhane
    Member

    yep, this is intentional

  9. removed
    DeployBlockerCash
    Hourly
    on Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions