Skip to content
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

Timezone - Dropdown is selectable when the "Set my time zone" bottom checkbox is checked #2806

Closed
isagoico opened this issue May 11, 2021 · 13 comments · Fixed by #2824
Closed
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@isagoico
Copy link

isagoico commented May 11, 2021

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Expected Result:

Dropdown should be disabled if the bottom checkbox is checked

Actual Result:

Dropdown is selectable when the "Set my time zone" bottom checkbox is checked

Action Performed:

  1. Go to https://staging.expensify.cash
  2. Log in with any account
  3. Go to Setting - Profile
  4. Scroll down to Time zone field
  5. Set my time zone automatically should be selected
  6. Try to chose other time zone

Workaround:

Unknown

Platform:

Where is this issue occurring?

Web ✔️
iOS
Android
Desktop App
Mobile Web

Version Number: 1.0.42-0

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos:
image

Bug5063900_Recording__76.mp4

Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/163784

View all open jobs on Upwork

@isagoico isagoico added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels May 11, 2021
@MelvinBot
Copy link

Triggered auto assignment to @zanyrenney (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@MelvinBot MelvinBot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label May 11, 2021
@zanyrenney zanyrenney removed their assignment May 12, 2021
@MelvinBot
Copy link

Triggered auto assignment to @Dal-Papa (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@Dal-Papa Dal-Papa added External Added to denote the issue can be worked on by a contributor Weekly KSv2 and removed Daily KSv2 labels May 12, 2021
@MelvinBot
Copy link

Triggered auto assignment to @marklouisdeshaun (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@MelvinBot MelvinBot added the Daily KSv2 label May 12, 2021
@marklouisdeshaun
Copy link
Contributor

Upwork job posting

@MelvinBot
Copy link

Triggered auto assignment to @marcaaron (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@dklymenk
Copy link
Contributor

While I can see that you pass disabled prop to Picker in src/pages/settings/Profile/ProfilePage.js, you don't actually pass it to RNPickerSelect in src/components/Picker/index.js.

So the fix is simply to add disabled to the list of destructed props of Picker component and pass it to RNPickerSelect.

@marcaaron
Copy link
Contributor

Nice catch @dklymenk. Can we please also update the propTypes here so that it's clear we are passing this prop -> https://github.com/Expensify/Expensify.cash/blob/3fad8d181165842897e7259ecfbfe591976cf381/src/components/Picker/PickerPropTypes.js#L3

@marcaaron
Copy link
Contributor

@marklouisdeshaun the solution from @dklymenk LGTM

@johndev0711

This comment has been minimized.

@johndev0711

This comment has been minimized.

@johndev0711

This comment has been minimized.

@dklymenk
Copy link
Contributor

Actually reproduced the issue on both web and android, so the issue is not web only.

I submitted a draft PR with a fix #2824 , I'll test tomorrow for regressions on iOS and desktop app and remove draft label.

Thank you.

@dklymenk
Copy link
Contributor

Confirm the fix works on all platforms. PR is ready for review

NikkiWines added a commit that referenced this issue May 14, 2021
#2806 fix selectable timezone dropdown with thuthy disabled passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants