-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
grid doesnt deactivate droppable properly when using acceptWidgets #542
Comments
Faced the same issue. When I try and drag it outside the bounds of the grid, dropout gets triggered and I can drag/drop in the grid again nicely. Without that, I get stuck and error is thrown. |
@nelsonad - forgot to tag you. |
Looks like I'm experiencing the same thing - dragging a widget off a flyout menu into the gridstack, works the first time but not the second time. Unless you drag the widget right to the top of the screen, in this case it's under the top menu. |
@petegibbins did you try making the change i posted above? It's still working for me |
@petegibbins oh, ya maybe that's it, i'm using v0.3.0 =/ |
@nelsonad Tried on v0.3.0 still no dice unfortunately. The 'dropover' event does not get fired 2nd time around. This line always returns undefined on the 2nd drag / drop. |
I have the same issue, do we know in which revision the workaround stopped working? |
Same issue... |
I thought this had been fixed in a merged PR on v1. @petegibbins you're using the newest version in the develop branch and still having this problem? |
Same Issue. Please fix this issue. Thanks |
Same issue please fix thanks! |
This is working for me on v0.4.0, released yesterday. I'm seeing it work fine on the demo - http://gridstackjs.com/demo/two.html - I'm closing the ticket, but if someone has a specific problem, please let me know. |
I'm still experiencing this one see #940 every after dragstop and try adding a new widget on a flyout menu it triggers and error " Uncaught TypeError: Cannot set property '_grid of undefined" line 933 "node._grid = self; " |
I am still experiencing this issue in v0.4.0 |
@mishrarajesh @jun1432 @polenginlabu @benjamincfaustino |
I am still facing this issue added below code : Still not working for me . Please suggets me what to do now |
@LaxmanTelang can you provide a jsfidle sample showing the issue with latest code ? |
I have an issue when adding multiple external items via drag and drop. The first draggable item works well, the grid activates and shows the placeholder and moves existing nodes out of the way.
The problem is with subsequent items, the grid doesn't activate immediately like the first item. It will start working if the new dragged item is moved out and triggers the draggable dropout event.
I tracked it down to an issue with gridstack preventing droppable from calling deactivate after the item is dropped.
And I fixed it by changing gridstacks droppable accept function to check node._temporary
Before:
After:
The text was updated successfully, but these errors were encountered: