DEV Community

loading...

Discussion on: How to style Draft.js editor

Collapse
tumee profile image
Tuomo Kankaanpää Author

Hi! If you want to show the scrollbar only when needed, you should use the value "auto" for the overflow-y property. So overflow-y: auto should set it visible only when needed.

Collapse
iamrohitsawai profile image
Rohit Kiran Sawai

I did the same what you have said but then also I can see scrollbar. What would be the issue?

Thread Thread
tumee profile image
Tuomo Kankaanpää Author

That's weird, it should work straight out of the box just with the overflow-y: auto. I am afraid it is hard to tell the issue without any code example.