-
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
mWeb - Assign Task Description field shows as multiline #21433
Comments
Triggered auto assignment to @greg-schroeder ( |
Bug0 Triage Checklist (Main S/O)
|
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 |
Asking if this should be fixed separately from #19135 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The description field show multiline line in the safari 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 || ' '}
|
That issue was created first, so I'll close this as a duplicate. |
@bernhardoj i added you as the issue reporter on the other one as you reported it on June 17th |
Sweet, thanks! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Description field initially shows as a single line like in other platforms
Actual Result:
Description field initially shows as a multi line
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.31-2
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
Expensify/Expensify Issue URL:
Issue reported by: @bernhardoj
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686997207642659
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: