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

TextArea scrolls to top after symbol entering #1935

Open
korvin89 opened this issue Nov 2, 2024 · 2 comments
Open

TextArea scrolls to top after symbol entering #1935

korvin89 opened this issue Nov 2, 2024 · 2 comments
Assignees
Labels
bug Something isn't working component: TextArea

Comments

@korvin89
Copy link
Contributor

korvin89 commented Nov 2, 2024

Screen.Recording.2024-11-02.at.13.44.09.mov
@korvin89 korvin89 added bug Something isn't working component: TextArea labels Nov 2, 2024
@korvin89 korvin89 self-assigned this Nov 2, 2024
@u4aew
Copy link
Contributor

u4aew commented Nov 7, 2024

It seems the issue is with control.style.height = 'auto'. (resizeHeight) If the textarea is not fully visible (there is page scrolling) when the height changes, there will be extra scrolling.

https://github.com/gravity-ui/uikit/blob/main/src/components/controls/TextArea/TextAreaControl.tsx

@korvin89
Copy link
Contributor Author

korvin89 commented Nov 8, 2024

Hi @u4aew
Yep, possibly it is. I'll fix it a little bit later. Unfortunately I don't have enough time for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component: TextArea
Projects
None yet
Development

No branches or pull requests

2 participants