-
Notifications
You must be signed in to change notification settings - Fork 3.4k
update picker properly on parent value #8698
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
update picker properly on parent value #8698
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
luacmartins
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and tests well! Thanks for the fix!
stitesExpensify
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left a comment, and there appears to be a merge conflict now
|
Wait, I just saw @luacmartins made a recent change on |
Nope, |
rushatgabhane
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, looks good.
|
Looks like all comments have been addressed. Merging... |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by @luacmartins in version: 1.1.57-0 🚀
|
|
🚀 Deployed to production by @chiragsalian in version: 1.1.57-17 🚀
|
Details
Fixed Issues
$ #7535
#8687
#8570
Tests
Set my timezone automaticallycheckboxTimezonePickerto focus. A list of options should appear.savebutton.Profile Pageand enter again.Pickerinput.Set my timezone automaticallycheckboxTimezonePickershould update to users's Timezone without updating pageiOS
On step 3 and 4, the
Picker's menu options should NOT close automatically on stop scroll.Storybook Web and Web Mobile (Google Chrome for Android)
Test
Pickerbehaviour insideFormin Storybooknpm run storybook.Form-->DefaultPickervalues. The UI should change accordinglysubmitbuttonForm.stories.js(Expected Behaviour?)Test scroll to
Pickeron clickfix the errrorsin Storybook.Form.stories.js,InputError.argsand set non empty values as default to other input types besidesPickersnpm run storybookForm.stories.jsor shrink window enough to get the firstPickerout of view while we can seesubmitbutton.submitbutton.Pickererror(s) andfix the errorssentence should appear.fix the errors. The view should scroll and center to the first Picker on error.Test
Pickerbehaviour insidePickerpage in Storybook.Pickervalues. The UI should change accordinglyPR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
PR Reviewer Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followed/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)QA Steps
Set my timezone automaticallycheckboxTimezonePickerto focus. A list of options should appear.savebutton.Profile Pageand enter again.Pickerinput.Set my timezone automaticallycheckboxTimezonePickershould update to users's Timezone without updating pageiOS
On step 3 and 4, the
Picker's menu options should NOT close automatically on stop scroll.Storybook Web and Web Mobile (Google Chrome for Android)
Test
Pickerbehaviour insideFormin StorybookForm-->DefaultPickervalues. The UI should change accordinglyScreenshots
Web
Storybook
Mobile Web
Desktop
iOS
Android