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
At the moment this use case is not handled very nice. You could try to create a new draggable for each new element but I'm not sure if that will work and if it will not have unwanted side-effects like unnecessary listeners for the same event.
I think it's a valid use case. We could change the structure in draggable.dart and draggable_manager.dart to allow adding new elements. The Draggable could still have an initial list of elements in the constructor but in addition get a new method to later add elements.
If you (or anyone else) wants to have a go at it, I think I could assist and should find time to review a pull request.
Initially I have a table of 4 rows, and I initialized Draggable once.
Later the component added a new row after some user interaction.
Problem is that new row isn't draggable.
I tried initialize again but the drop event is listened twice.
Do you have any suggestion how to handle it on my use case?
The text was updated successfully, but these errors were encountered: