-
Notifications
You must be signed in to change notification settings - Fork 3k
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
add selectTextOnFocus for GooglePlacesAutoComplete #30424
add selectTextOnFocus for GooglePlacesAutoComplete #30424
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@cubuspl42 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] |
Reviewer Checklist
Screenshots/VideosWebdistance-focus-web.mp4Mobile Web - Chromedistance-focus-android-web-compressed.mp4Mobile Web - Safaridistance-focus-ios-web.mp4Desktopdistance-focus-desktop.mp4iOSdistance-focus-ios.mp4Androiddistance-focus-android-compressed.mp4 |
The |
Hey @cubuspl42, your Android video seems incorrect.
I'm going to test an AdHoc build before confirming, but it looks like its working to me in @c3024's videos... Am I missing something? |
Oops, I dragged wrong file. Corrected.
The actual steps are somewhat different. I followed the testing steps literally and unfocused by tapping a non-functional black area. |
🧪🧪 Use the links below to test this build in android and iOS. Happy testing! 🧪🧪 |
I haven't tested iOS yet, but for Android I see the full text being select both when entering the page, and after tapping outside the input: Android-Focus.mp4 |
@Julesssss Screen.Recording.2023-11-02.at.10.52.52.PM.mov |
For me, I had to select an address first. And it only de-focused when I tapped quite close to the input (for example, where the address dropdown shows in your video) |
@Julesssss |
@c3024 @cubuspl42 does this work in other places in the app? Or is it unique to this input? |
Textinput does not blur when clicking outside even in other pages as well on iOS. blurAtOtherOutput.mov |
I was able to reproduce this on iOS here. But given the simplicity of this change then lets just move on. iOS should be resolved app wide. |
✋ 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 https://github.com/Julesssss in version: 1.3.99-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.99-0 🚀
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.4.0-0 🚀
|
Details
Fixed Issues
$ #30198
PROPOSAL: #30198 (comment)
Tests
Offline tests
QA Steps
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
Android: Native
Screen.Recording.2023-10-26.at.5.42.22.PM.mov
Android: mWeb Chrome
selectOnFocusAndroid.mp4
iOS: Native
Screen.Recording.2023-10-26.at.4.59.04.PM.mov
iOS: mWeb Safari
Screen.Recording.2023-10-26.at.4.51.08.PM.mov
MacOS: Chrome / Safari
selectOnFocusWebChrome.mov
MacOS: Desktop
selectOnFocusDesktop.mov