After using react-motion to fold and expand the sidebar, the scroll bar becomes invalid

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

related codes

https://codesandbox.io/embed/.

Feb.24,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b355b3-2bf8e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b355b3-2bf8e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?