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

Typing in autosize textarea triggers scrolling to top of browser window #212

Open
Nutomic opened this issue Dec 11, 2024 · 0 comments
Open

Comments

@Nutomic
Copy link

Nutomic commented Dec 11, 2024

First of all thanks for this library, it is really useful!

However I noticed a problem with the autosize textarea, here are the steps to reproduce:

  1. Launch the use_textarea_autosize example
  2. Fill the textarea with enough content that it is higher than the browser window, and a scrollbar appears from the browser (its enough to hold Enter for some seconds)
  3. Move cursor to middle of textarea
  4. Type something

You will notice that the scroll position is changed, it goes up to the top of the page. I would expect the scroll position to remain unchanged.

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

1 participant