-
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
[$1000] Cursor is barely visible on the next line after pressing 'Enter' in task description while creating it #21449
Comments
Triggered auto assignment to @sakluger ( |
Bug0 Triage Checklist (Main S/O)
|
This is a dupe of this issue |
@sakluger Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
This issue is stemming from this issue - I left a comment over there. |
Okay this is a new issue, adding external label. |
Job added to Upwork: https://www.upwork.com/jobs/~01f6185cdf31429363 |
Current assignee @sakluger is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Description - Cursor half visible when hitting Enter and going to next line of Task Description What is the root cause of that problem?Root cause is the custom autoGrowHeight styles which we are using by passing the autoGrowHeight prop to dynamically update the height of App/src/pages/tasks/TaskDescriptionPage.js Lines 77 to 91 in 82558a1
What changes do you think we should make in order to solve the problem?This is more of an hack but you could see that for first 3-4 lines it partially hides the cursor and post that, it behaves well. const [height, setHeight] = useState(60);
...................
<TextInput
containerStyles={[styles.autoGrowHeightMultilineInputNew(height)]}
onContentSizeChange={(e) => setHeight(e.nativeEvent.contentSize.height)}
>
</TextInput> autoGrowHeightMultilineInputNew: (height) => ({
height: height,
minHeight: 60
}), ResultsWhat alternative solutions did you explore? (Optional)None |
Dupe of #21271 |
Isn't that in task description page @chiragxarora |
This is also about task description and this bug is present on task description, new task description and welcome text and maybe some other multiline input. RCA is same |
@chiragxarora If this happens on other pages and the RCA is the same, should we have a global solution? |
I agree that this is the same root cause and that we should have a global solution. I'm going to close this issue in favor of #21271, and recommend over there that we create one global solution. |
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:
When you press Enter to create a new line in the task description field, the input area should automatically expand to show the full cursor on the next line.
Actual Result:
When you press Enter to create a new line, the input area does not auto adjust to the next line until the user starts typing characters on the new 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-3
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-task-description-newline-bug.mov
Expensify/Expensify Issue URL:
Issue reported by: @Victor-Nyagudi
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687008611679269
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: