-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix(selection-list): focus input on screen focus #26415
fix(selection-list): focus input on screen focus #26415
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@Santhosh-Sellavel Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Hey @roryabraham here's the follow up to the Draft PR you sent. It's basically the same + a few polishings on propTypes and fixing tests. I left a question for you here, if I can understand what were the issues with your first approach I could maybe try to investigate that road. Thanks! |
Yes @thiagobrez I can explain (original explanation here. There were a few approaches I tried:
|
Reviewer Checklist
Screenshots/VideosWeb & DesktopScreen.Recording.2023-09-04.at.5.55.52.AM.movMobile Web - Chrome & Mobile Web - SafariScreen.Recording.2023-09-04.at.6.06.35.AM.moviOSScreen.Recording.2023-09-04.at.6.11.17.AM.movAndroidScreen.Recording.2023-09-04.at.6.17.02.AM.mov |
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 tests well!
Thanks, hoping to merge this as soon as the merge freeze is lifted. |
I think this ready to merge but I want to hold off until after 1 more production deploy to prevent us having an unmanageably huge deploy checklist |
@thiagobrez can you resolve conflicts here? |
@roryabraham Done! |
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, thanks!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
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.
Just confirming if this change was intentional? @thiagobrez
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.
Hey @huzaifa-99, yeah it was intentional. The regression came in due to the fact that I wasn't aware that a pronoun could be un-selected. I already sent a comment in the issue
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.
Thank you!
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.69-0 🚀
|
@mvtglobally raised this is failing #25893 on Android, @thiagobrez could you double check? |
@mountiny Yep, on it |
@mountiny Works for me on latest main: Screen.Recording.2023-09-14.at.08.59.11.movIf you have more info how to reproduce, I can test it again! |
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.69-2 🚀
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.70-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.70-8 🚀
|
Details
TextInput was not being focused after coming back from pages, only on first mount.
shouldDelayFocus
prop, since every list that has a TextInput should delay the focus to after the animation completes, so the animation is not overridenThis is basically a copy of @roryabraham 's Draft PR + removing the unused prop in propTypes and fixing tests.
Fixed Issues
$ #25893
PROPOSAL:
Tests
In all pages listed below, verify this criteria:
?
help button, press to navigate to the help page, then go back. The input should be focused again?
button)?
button)Offline tests
QA Steps
In all pages listed below, verify this criteria:
?
help button, press to navigate to the help page, then go back. The input should be focused again?
button)?
button)PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
web.mov
Mobile Web - Chrome
android.web.mov
Mobile Web - Safari
ios.web.mp4
Desktop
desktop.mov
iOS
ios.native.mp4
Android
android.native.mov