-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Cannot read property 'setDraggables' of undefined #82
Comments
@test137E29B were you able to solve this ? |
@test137E29B @VIRGO96 In the above case, you may try the following.
PS: I know it has been a long time, but it may help someone. |
Hi there @thema-d, thanks for your reply, and am indeed facing the same error with vue-smooth-dnd. As background, I am displaying a list of elements from a computed list within a rough structure like this:
I have attached the code for the displayList computed property below for you to look through if it helps. The error I am encountering is that most times, when I enter in a search value to filter the list of items, and then attempt to drag that item I have the same error as you did. Notably, the error does not seem to occur if them item searched for is close to the top of the list of items, which leads me to believe it MAY be related to the number of items the list is returning. For context, the total number of items displayed in the list is approx 250 odd. I am not familiar with react or react hooks in the above case and am unclear by what you mean by the components should direct the components. Any help in trying to hunt down this issue would ben greatly appreciated. Kind regards,
});` |
update to the above: The error only occurs if the search bar is active. once the cursor has left the search bar, and the search bar has been blurred, the error does not occur. |
Version 0.11.1
React 17.0.2
I'm using this library for an inventory system with two lists.
Either list can be updated at any time, as the inventory can be access by multiple people at once and when an item is removed it should show for all UIs.
However, if a user drags too many list items too fast, the drag soft-locks and doesn't allow dragging until reload of the UI.
The error is
Cannot read property 'setDraggables' of undefined
. HOWEVER the only thing actually inside of theContainer
element is a div with the ref (and some styles to set theContainer
's forced height), with children ofDraggable
- there is no other element.The text was updated successfully, but these errors were encountered: