Dealing with an extensive menu list, I aimed to restrict them using a scroll.
In the demo on CodePen, everything works fine without the scroll.
However, upon adding overflow-y:scroll; height:200px;
, it leads to an overflow-x issue and hides all the dropdowns as illustrated in the screenshot below:
https://i.sstatic.net/rhFGk.png
I stumbled upon the smart menu library that can perform the task effectively.
My concern is - Is there a way to achieve this without relying on a library?