You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Scroll in rx.text_area vanishes when auto_height is True #3863
Wonderful work with Reflex, it's truly a dream come true for many!
In the text_area component, if auto_height is set to True, the scroll bar vanishes. So in cases where the user limits the height of the text_area component, there's no way to navigate the text inside the text_area with a scroll bar.
@VishDev12 Hello I tested it and so far it looks like this isnt a bug with nightly reflex, because If you write a lot of text to a text field it will extend to hold all text. So I think you can close It as non bug.
Hey @danik292, thank you for exploring this! Sorry if this wasn't clear, but the issue is that when maximum height of the text_area is set, we expect the overflow text to be scrollable. But I'm guessing because of the following line, it is not scrollable and everything above max_height gets clipped; there is no scroll bar available inside the text_area:
Activity
[-]Scroll in rx.text_area[/-][+]Scroll in rx.text_area vanishes when `auto_height` is True[/+]DanielFrantes commentedon Sep 1, 2024
I will take this.
And do you have some testcase for this issue?
It will be helpful for me to catch.
thanks
VishDev12 commentedon Sep 1, 2024
Hi! I'm not sure about a test case, but I do have this example:
Now, when a lot of text is entered, it is not possible to scroll inside the text area.
DanielFrantes commentedon Sep 2, 2024
Thank mate I needed something like this.
DanielFrantes commentedon Sep 4, 2024
@VishDev12 Hello I tested it and so far it looks like this isnt a bug with nightly reflex, because If you write a lot of text to a text field it will extend to hold all text. So I think you can close It as non bug.
VishDev12 commentedon Sep 4, 2024
Hey @danik292, thank you for exploring this! Sorry if this wasn't clear, but the issue is that when maximum height of the text_area is set, we expect the overflow text to be scrollable. But I'm guessing because of the following line, it is not scrollable and everything above max_height gets clipped; there is no scroll bar available inside the text_area:
reflex/reflex/components/el/elements/forms.py
Line 504 in 99a0236
masenf commentedon Sep 4, 2024
does it work as expected with that value set to "scroll"? if so then i believe that is the fix
VishDev12 commentedon Sep 4, 2024
Yes it does, and thank you for the confirmation! I've submitted the PR.