-
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
[HOLD for payment 2023-08-01] [$1000] IOS - The text below the input flickers upon typing the first character #22583
Comments
Triggered auto assignment to @michaelhaxhiu ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.hat the text input's height changes when we enter text into it. What is the root cause of that problem?The current implementation of the auto grow text input calculates the input height by rendering text outside the screen, measuring its height, and setting it as the height of the text input. However, there is an issue where the minimum height is not properly handled in iOS. The height property overrides the minHeight property, which results in the input height potentially becoming smaller than the specified minHeight. The root cause of this problem is the missing check for the minimum height when setting the input height. The current implementation only checks if the calculated height is greater than the maxHeight, but it doesn't consider the case where the calculated height is less than the minHeight. What changes do you think we should make in order to solve the problem?we need to check in autoGrowHeightInputContainer furnction if the high is less the min hight we will set hight to minHight . autoGrowHeightInputContainer: (textInputHeight, maxHeight) => {
const minHeight= variables.componentSizeLarge;
let height = textInputHeight;
if (height >= maxHeight) {
height = maxHeight;
} else if (height <= minHeight){
height = minHeight;
}
return{
height,
minHeight,
}
} What alternative solutions did you explore? (Optional)N/A Result :Simulator.Screen.Recording.-.iPhone.14.-.2023-07-11.at.00.20.29.mp4 |
this looks expected as we discussed here #20904 (comment) |
@dhairyasenjaliya I don't think it's expected ... The problem arises when the height changes as we start typing, whereas we expect the height to remain consistent when the input is focused and contains only one line. but from comment you mention we expect the text input to change height when we have more than one line. |
ah ok looks different bug than thnx @ahmdshrif |
ProposalPlease re-state the problem that we are trying to solve in this issue.The height of text input changes after typing the first character. What is the root cause of that problem?The issue is caused by the height property overriding the Lines 862 to 865 in a51f7c7
What changes do you think we should make in order to solve the problem?We can ensure that the input height is calculated based on the provided
What alternative solutions did you explore? (Optional)We can use the ternary operator to conditionally set the value of height.
ResultScreen.Recording.2023-07-11.at.5.23.49.AM.mov |
Job added to Upwork: https://www.upwork.com/jobs/~01aade6c9bc04abd1e |
Current assignee @michaelhaxhiu is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
Fielding proposals! |
Hi, Screen.Recording.2023-07-14.at.12.22.16.mov |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@ahmdshrif's proposal looks good to me! 🎀👀🎀 C+ reviewed! |
Triggered auto assignment to @roryabraham, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @aman-atg We're missing your Upwork ID to automatically send you an offer for the Reporter role. |
🎯 ⚡️ Woah @eVoloshchak / @ahmdshrif, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.44-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-08-01. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Payment summary:
|
@eVoloshchak Lastly, can you start on the checklist? |
|
Nice! I agree w/ your reasoning, no regression test needed |
@aman-atg and @ahmdshrif lmk when you accept my Upwork job offer so i can send the payment. |
Requested the payment via NewDot🎉 |
Reviewed details for @eVoloshchak. These details are accurate based on summary from Business Reviewer and are now approved for payment in NewDot. |
Thanks @michaelhaxhiu I accept the offer. |
@michaelhaxhiu I've accepted the offer, thank you! |
all paid |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The text below the input should not flicker when typing the first character
Actual Result:
The text below the input flickers when typing the first character
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.37-7
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
RPReplay_Final1688985350.mov
RPReplay_Final1689017306.MP4
Expensify/Expensify Issue URL:
Issue reported by: @aman-atg
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688995973983469
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: