Skip to content

Commit

Permalink
docs(useTextareaAutosize): add warning with textarea scroll styles
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander.kudinov committed Nov 15, 2023
1 parent 0b4657a commit bc1ec87
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/core/useTextareaAutosize/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ category: Browser

Automatically update the height of a textarea depending on the content.

::: warning
Don't forget to reset the scrollbar styles for the textarea element to avoid incorrect height values for large amounts of text.

```css
textarea {
-ms-overflow-style: none;
scrollbar-width: none;
}

textarea::-webkit-scrollbar {
display: none;
}
```
:::

## Usage

### Simple example
Expand Down

0 comments on commit bc1ec87

Please sign in to comment.