This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(textarea): textarea shrinking and resizing
* Changes the textarea behavior to consider the "rows" attribute as the minimum, instead of the maximum, when auto-expanding the element. * Adds a handle for vertically resizing the textarea element. * Simplifies the logic for determining the textarea height. * Makes the textarea sizing more accurate by using scrollHeight directly, instead of depending on the line height and amount of rows. * Avoids potential issues where the textarea wouldn't resize when adding a newline. Closes #7649. BREAKING CHANGE This changes the behavior from considering the "rows" attribute as the maximum to considering it as the minimum.
- Loading branch information
Showing
4 changed files
with
201 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.