-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when adding/removing cells from Flickity #14
Comments
hey @Kinark I'll take a look into this and get back to you. |
@Kinark So I've been thinking of some ways to allow this package to use dynamic children but haven't come up with anything super useful. Flickity expects cells to be added and removed with the |
Forcing the user to manage the elements "by hand" IMO breaks the beauty of React. |
@Ismael yeah I tend to agree, if I put up a test branch would you be willing to help out testing this? |
Sure
|
@theolampert I can also help you test this, are you working on this? |
@92arpitgoyal @Ismael I'm hoping #16 will solve this and a few other issues. |
I'm trying to add cells dynamically by mapping a state object and remapping after an ajax call ends:
However, what I get rendered after the ajax call is something like this:
I mean, if I have more cells in the remap than I had before, they're added outside the viewport and the slider. And if I have less cells in the ajax call than I had before, I got an error:
Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
Is it a bug or am I doing something wrong?
The text was updated successfully, but these errors were encountered: