How to create a Dropdown that always scrolls its list to the bottom? #48285
-
I am trying to create an automatically scrolled Dropdown using [email protected]. I want to have the dropdown list to always scrolled to the end on every mouse hover. This is an example of what I want to achieve. I found this from another stack overflow question, but it is using another component Drawer with an older version of antd, which is [email protected]. As u can see from my code, the dropdown list doesn't scroll till the end on hover. It only scrolls when the mouse leaves the Dropdown component. The list also will not scroll till the end after new item is added to the list (by clicking the Add button). How to achieve the same auto-scrolled effect while keeping the same [email protected] version? This question is also asked in stack overflow. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Maybe you can try this way to solve you problem. |
Beta Was this translation helpful? Give feedback.
Maybe you can try this way to solve you problem.
https://codepen.io/kiner/pen/mdgXpeV?editors=0010