Incorrect behavior in useTextareaAutosize when resizing vertically or both axes
Describe the bug
I tried to play around a little bit with useTextareaAutosize and it seems like it has some issues with resizing when using Y axis or using both axes. Though only X axis works just fine. Something I can do about it?
Reproduction
https://play.vueuse.org/#N4IgDghgxg1hDmBTAziAXAbVAOwgW0XRADcBXRAWgBNE8BLEAGhGQHtSAnKQtEU7MDHhMQNZFA50wAFzqtsRAGrkABABFadFQAoAFhAA2AMxV1sKgGIdE2KLoCUp5CogqaxRAdZgz8FaVkDOmkATxcDLwB3ZxD2FWlWFUjJaUQVAFVsOg8OZEMVZTSAGToAIw4ISRQVI1YOAtUAJhUAMhUAZhFOAyJdaWkwZDQAemH+QXgAOihWPGGyShp6YaDS4bMaAA9JvAArVABfRhx8HhAAAQXSZERh5H1rKhE2Tm4icaERMQkpWXkiADKD0QVAaiHSN38gWCdBQky6HB6vD6AyGow+Uxmc0u5Gut3ulRB5wAjAAGSbEyak9bYLY7fYgI4nAhEHGIPHDGbWZ7sLhnDFfFA-GRyBS8ADCrAiiCgf3MrBMKBu2Fk+UKKkleDArGQMPkGWhshQCKRIBRgxGYwEQmms2GbI5XMQJPJlOpG0Q2z2hwAuswjHQDMa0KAAIJgMCTBboUCpLUGCCpIgAHio2QAfAAdcwqXPJ1KbaSEiDZ3NllTWIwAXkzIALResJZApfLKmIFDwrBoBhrIDMYACtZb5agCeQyF71l1AC9KCEhzny2AE9xdFKaBxewB1fTSADkzn1sU4KnotIA-Avy8Msznk8M08R089hdIiHQtXVpCpgP4bgAVT0G0QCBQwCHU6FnFQDhqDhZhUPcHRuTk6kQPcAG5s2zGZsGQb9f3rYtGFMAQAmglQqz-RBAMLYswISGdEG0ex0MZZhJTqNNcFSKNyBjOtaGXRMzlTbIW1qFVe07bBWCvFRSngXsgngPoKAAVlJUk3EqGA0CoHT1M0uSjCDTZewAPxUGYDDk+te24FVEA4OSwF7Ro5NKTinMndhaRBBdbzzZBIHMOzawAFk2GyQHTYBf2IQxVAOA572CiBsEClRkzS0KgN7ZA8G0jhdOU1SAE5NKK3TvGgYIQkM2tT17aQKHcmKAFl2EhOKVATUpPGglK7hC2970fZ9mHESQZCIGgA2wRAAAU4MGbRgBbPrPDQFQAWkSRsHgRgWwSgxyG2gA5Ug8H6jgjuwA57EZZKgA
System Info
it's just a playground
Used Package Manager
npm
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] 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.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- [X] The provided reproduction is a minimal reproducible example of the bug.
Hey, still wondering if it is a bug or maybe I do something wrong?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Having a problem with vertical resizing as well. Looks like a bug to me
+1