Incompatibility with pagination #472
Unanswered
nightwolf-041
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi,
i have a react-virtouso list with 3 behavior :
for handle these three behaviors i have a state in parent component that is save changed item index/id and i have a other current index in list component.
when i click on buttons or scroll list, it should change these states and focus on current item.
so in list component i have :
and here is my parent component :
but when I click on the buttons, the
onChange
called at the same time, and this causes the buttons to work slowly and sometimes not.If I delete the onChange function, everything will be fine, but current item can no longer be changed by scrolling in the list.
what i need to do ?
Beta Was this translation helpful? Give feedback.
All reactions