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

Scrolling in a textarea tag does not work as expected #144

Open
andreymyssak opened this issue Jun 3, 2021 · 2 comments
Open

Scrolling in a textarea tag does not work as expected #144

andreymyssak opened this issue Jun 3, 2021 · 2 comments

Comments

@andreymyssak
Copy link

After a few scrolls of <textarea />, which is inside the perfect scrollbar, it starts to work incorrectly. The scroll disappears, but if you select the text and swipe it up or down, the scroll returns. After repeating the same steps, the problem repeats again. The scroll at <textarea /> disappears by the third scroll.

Steps to reproduce:

  1. Scroll the textarea tag;
  2. Scroll the container;
  3. Scroll the textarea tag;
  4. Scroll the container;
  5. Scroll the textarea tag (on this step you can see the problem).

Please, watch the video to understand the problem (bug shown after 13 seconds).
You can reproduce this issue in Sandbox.

@danielnadar75
Copy link

Hi even I am facing the same issue, once the scroll bar of text area reached the end (top or bottom) and if I leave the mouse and then try to scroll with the text area focused it isn't working instead it's scrolling the parent? Kindly look into it and if there's any way to make it to work with some settings it would help. Thanks again.

@illiabakunovskyi
Copy link

Solution to your problem is to add 'ps__child--consume' class to textarea to let scrollbar event be consumed by it's child - textarea. This helped me with the same problem, documentation should be updated for sure.

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

3 participants