-
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
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 |
src/styles/styles.js
Outdated
minHeight: variables.componentSizeLarge, | ||
}), | ||
autoGrowHeightInputContainer: (textInputHeight, maxHeight) => { | ||
const minHeight = variables.componentSizeLarge; |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nice, thank you for lodashClamp
, didn't know it existed, handy
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.
Yes, it looks better. I wasn't aware that lodash had this helper function.
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.
@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 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
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