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: onResize callback fires not only on resize #3884

Open
4 tasks done
oleksandr-hyriavets opened this issue Mar 24, 2024 · 1 comment · May be fixed by #3887
Open
4 tasks done

useTextareaAutosize: onResize callback fires not only on resize #3884

oleksandr-hyriavets opened this issue Mar 24, 2024 · 1 comment · May be fixed by #3887
Labels
enhancement New feature or request vue: upstream

Comments

@oleksandr-hyriavets
Copy link
Contributor

Clear and concise description of the problem

useTextareaAutosize has the option onResize. First of all, it is undocumented, so it's probably worth it to add it to the docs.
Then, it is called on every change of the input and textarea.

Suggested solution

  • add the onResize callback to docs
  • call it only when size actually changes

Alternative

No response

Additional context

No response

Validations

@oleksandr-hyriavets oleksandr-hyriavets added the enhancement New feature or request label Mar 24, 2024
@huiliangShen
Copy link
Contributor

actually, useTextareaAutosize only focus on height update. so, the onResize callback need trigger only when textarea height changed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vue: upstream
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants