fix: text below the input flickers in ios.#23054
Conversation
cfbe89b to
7d82a3e
Compare
|
@eVoloshchak 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] |
|
@eVoloshchak, this is ready for review. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-19.at.23.04.48.movMobile Web - Chromescreen-20230719-232216.mp4Mobile Web - SafariScreen.Recording.2023-07-19.at.23.18.10.movDesktopScreen.Recording.2023-07-19.at.23.05.20.moviOSScreen.Recording.2023-07-19.at.23.20.17.movAndroidscreen-20230719-232134.mp4 |
| minHeight: variables.componentSizeLarge, | ||
| }), | ||
| autoGrowHeightInputContainer: (textInputHeight, maxHeight) => { | ||
| const minHeight = variables.componentSizeLarge; |
There was a problem hiding this comment.
Instead of hard-coding this here, can we pass in the minHeight as a parameter to this function?
also we're missing the JSDoc for this function.
There was a problem hiding this comment.
Also, NAB but I think if I were implementing this I would just do this:
import lodashClamp from 'lodash/clamp';
autoGrowHeightInputContainer: (textInputHeight, minHeight, maxHeight) => ({
height: lodashClamp(textInputHeight, minHeight, maxHeight),
minHeight,
});There was a problem hiding this comment.
Oh nice, thank you for lodashClamp, didn't know it existed, handy
There was a problem hiding this comment.
Yes, it looks better. I wasn't aware that lodash had this helper function.
There was a problem hiding this comment.
@eVoloshchak @roryabraham ok, I apply these changes. you can check the updated code.
|
✋ 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/roryabraham in version: 1.3.44-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.44-2 🚀
|
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.45-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|
Details
in the auto-grow text-input will add some checks to make sure that the height is not lower than the min hight.
Fixed Issues
$ #22583
PROPOSAL: #22583 (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
Web
Screen.Recording.2023-07-18.at.6.57.39.AM.mov
Mobile Web - Chrome
Screen.Recording.2023-07-18.at.6.55.59.AM.mov
Mobile Web - Safari
Simulator.Screen.Recording.-.iPhone.14.-.2023-07-18.at.06.57.18.mp4
Desktop
Screen.Recording.2023-07-18.at.7.00.20.AM.mov
iOS
Simulator.Screen.Recording.-.iPhone.14.-.2023-07-18.at.06.45.16.mp4
Android
Screen.Recording.2023-07-18.at.6.52.52.AM.mov