-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-07-12] [$1000] Assign Task - Description field line is displaced and moves up when typed #21280
Comments
Triggered auto assignment to @JmillsExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is root cause of that problem?
What Changes do you think we should make in order to solve the problem?Affected File Code:
Code Changes function getAutoGrowHeightInputStyle(textInputHeight, maxHeight) {
if (textInputHeight > maxHeight) {
return {
...styles.pr0,
...styles.overflowAuto,
};
}
+ let height = maxHeight - styles.textInputMultilineContainer.paddingTop - styles.textInputContainer.borderBottomWidth;
+ if(Browser.getBrowser() === CONST.BROWSER.SAFARI) {
+ height = textInputHeight;
+ }
+
return {
...styles.pr0,
...styles.overflowHidden,
// maxHeight is not of the input only but the of the whole input container
// which also includes the top padding and bottom border
- height: maxHeight - styles.textInputMultilineContainer.paddingTop - styles.textInputContainer.borderBottomWidth,
+ height,
};
} Fixed: Fixed VideoFix-AssignTask.mp4What alternative solutions did you explore? (Optional)
|
Hi, I reported this issue 5 days ago here https://expensify.slack.com/archives/C049HHMV9SM/p1686997207642659. Will I get credited as the reporter? |
My proposal will also solve this issue adding link here, RCA is same. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Description field height changed, when typed What is the root cause of that problem?When we implement auto-grow text input, we use a hidden We calculate height and width for input when React fired a
What changes do you think we should make in order to solve the problem?We just need a value in our hidden It will work when we set a File: App/src/components/TextInput/BaseTextInput.js - {this.state.value || this.props.placeholder}
+ {this.state.value || this.props.placeholder || ' '}
|
Other issue was marked as closed so pasting solution here ProposalPlease re-state the problem that we are trying to solve in this issue.Safari (web and mWeb) - Assign Task Description field shows as multiline What is the root cause of that problem?Problem is here TextInput with App/src/components/TextInput/BaseTextInput.js Lines 380 to 393 in 66915ac
when we have empty string, in safari web and mWeb onLayout doesn't get Called(its getting called in chrome) , thus we left with textInputHeight as undefined and its set maxHeight as height here.App/src/components/TextInput/BaseTextInput.js Line 236 in 66915ac
What changes do you think we should make in order to solve the problem?We should define
ResultSimulator.Screen.Recording.-.iPhone.14.-.2023-06-24.at.00.56.35.mp4What alternative solutions did you explore? (Optional)None |
@JmillsExpensify Huh... This is 4 days overdue. Who can take care of this? |
Agreed that this is a bug and I can reproduce it. I'm opening this one up for the community. |
Job added to Upwork: https://www.upwork.com/jobs/~014f2dca07ce0d7ce9 |
Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
Proposal from @kushu7 makes sense to me - we need to have the same workflow for both growing input vertically and horizontally - based on that adding 0 to initial state variable should fix a problem globally as well #21280 (comment) |
Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I believe this would have been fixed by #20836. Is that not the case? |
Nope, i checked the PR, it was just related to flickering issue |
📣 @kushu7 🎉 An offer has been automatically sent to your Upwork account 🎉 Contributor - [$1000] Assign Task - Description field line is displaced and moves up when typed Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻 |
Coolio, thanks! |
📣 @bernhardoj You have been assigned to this job! |
PR is ready for review. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.36-5 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-07-12. 🎊 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.
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:
|
It looks like this PR is ready for payment though @narefyev91 can you please get us kicked off with the BugZero checklist? Additionally, can either you or @thienlnam confirm that this PR is eligible for the 50% bonus. I'm not seeing an automated confirmation above. Checking the PR though, it looks like it is. |
|
Seems so - issue was fixed during 1.5 - 2 days |
Great thanks! |
Alright, circling back on payments, I think we are done. Here's where we ended up:
@narefyev91 please make sure that this is on our Callstack invoice. Otherwise, I'm closing this one out! 🙌🏼 |
@JmillsExpensify hi, I just realized I haven't received the payment for the bug report 😅. Sorry for bringing this up late, but can you help me with the payment, please? |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR #20689
Action Performed:
Expected Result:
Description field line remains at the same place all the time
Actual Result:
Description field line moves up when user types something
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.30.5
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Bug6102069_Recording__716.mp4
Expensify/Expensify Issue URL:
Issue reported by: @bernhardoj
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: