You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just noticed something, not sure if it's an issue with flickity or the react wrapping, but I can't replicate it in a non-react environment.
When I am using a combination of cellAlign=right, wrapAround=true, groupCells=true and then apply an onClick event that is updating a useState, randomly (can't find a pattern) clicking on the cells (end cells mainly) causes the cells to reposition outside of the slide viewport (looks like they are reordering back to their indexed order. Made a demo by forking off the code pen demo from the github repo. You might need to click around a bit or reload, I can't get a pattern yet. Was testing in Chrome 87.0.4280.88
I'm not using 'groupCells' option, but i'm facing the same problem here... I tried to remove all CSS styles but the problem keeps... seems to be a bug of this component.
No sorry. My solution was to not use any of those options unfortunately and
had to go with a simpler approach of the standard setup. The reason I
wanted this was to have the last cells in the sequence be on the right hand
side before the loop started again. It mostly worked, but the reason for
backtracking now fails me.
Hi,
Just noticed something, not sure if it's an issue with flickity or the react wrapping, but I can't replicate it in a non-react environment.
When I am using a combination of cellAlign=right, wrapAround=true, groupCells=true and then apply an onClick event that is updating a useState, randomly (can't find a pattern) clicking on the cells (end cells mainly) causes the cells to reposition outside of the slide viewport (looks like they are reordering back to their indexed order. Made a demo by forking off the code pen demo from the github repo. You might need to click around a bit or reload, I can't get a pattern yet. Was testing in Chrome 87.0.4280.88
https://codesandbox.io/s/react-flickity-forked-wq3sg?file=/src/index.js
Thanks,
J
The text was updated successfully, but these errors were encountered: