Skip to content
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

useTextareaAutosize #3962

Open
7 tasks done
muster-mark opened this issue May 10, 2024 · 1 comment
Open
7 tasks done

useTextareaAutosize #3962

muster-mark opened this issue May 10, 2024 · 1 comment

Comments

@muster-mark
Copy link

Describe the bug

The textarea increases in height before necessary. I do not think this is as intended, or I imagine it would be mentioned in the docs. The following video was recorded from the example page https://vueuse.org/core/useTextareaAutosize on Firefox . The behaviour is the same on Chrome.

Screen.Recording.2024-05-10.at.11.14.08.mov

Reproduction

https://vueuse.org/core/useTextareaAutosize/

System Info

Not applicable as issue apparent on vueuse.org demo.

Used Package Manager

npm

Validations

@lzl0304
Copy link
Contributor

lzl0304 commented May 15, 2024

You need to add the following styles

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

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

https://vueuse.org/core/useTextareaAutosize/#usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants