-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the bug
When useTextareaAutosize
is used on a textarea with box-sizing: border-box
and a border is added an unneccessary scrollbar comes in.
I believe this could be fixed, if one would allow to pass the box
option to the underlying useResizeObserver
. I already tried it in the playground and seems to work: vueuuse-playground but I'm unsure of the implications.
I would be willing to create a PR for this, if it's ok to add the extra options to the composable.
Thank you very much for the project!
Reproduction
System Info
System:
OS: macOS 13.3.1
CPU: (12) arm64 Apple M2 Pro
Memory: 59.75 MB / 16.00 GB
Shell: 3.6.1 - /opt/homebrew/bin/fish
Binaries:
Node: 18.16.0 - ~/.volta/tools/image/node/18.16.0/bin/node
Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
npm: 9.5.1 - ~/.volta/tools/image/node/18.16.0/bin/npm
Watchman: 2023.05.22.00 - /opt/homebrew/bin/watchman
npmPackages:
@vueuse/components: 10.0.2 => 10.0.2
@vueuse/core: 10.0.2 => 10.0.2
vue: 3.3.1 => 3.3.1
Used Package Manager
yarn
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request