problem description
after the sidebar is folded and expanded, the scroll bar inside the sidebar will fail
the environmental background of the problems and what methods you have tried
then I tried focus ()
and forceupdate ()
on Slider components using ref, but to no avail.
it is useless to use setTimeout ()
to do focus ()
and forceupdate ()
long after the animation ends
then I unwittingly triggered the dispatch, scroll bar and returned to normal. I guess this has something to do with react"s view update