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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly 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)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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