Skip to content

Conversation

@urmauur
Copy link
Member

@urmauur urmauur commented Nov 11, 2023

Fix #589

Solution:
Add new component textarea and make dynamic height based on scroll height of element

Result:

Screenshot 2023-11-11 at 17 25 15 Screenshot 2023-11-11 at 17 25 24

@urmauur urmauur requested a review from louis-jan November 11, 2023 10:26
textareaRef.current.style.height = '40px'
} else {
textareaRef.current.style.height = `${
scrollHeight < 40 ? 40 : scrollHeight
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @namchuai, input sizing back :D

@urmauur urmauur merged commit ef3d89f into main Nov 12, 2023
@urmauur urmauur deleted the bug/multiple-line-input branch November 12, 2023 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

bug: I would like to input a paragraph (multiple lines)

3 participants