-
-
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
an exception happens when I drag one widge to another(acceptWidgets :true) #803
Comments
Got this error too, anybody knows why this occurs? |
This is resolved in current |
I still see this issue in v0.4.0. Is there any work around for this. Steps:
|
I have the same issue, even with the newest version (v0.5.5) |
I'm pretty sure I ran into this ("fixed error when dragging add item over the trash, and then over second grid" commit msg) and fixed the assert it as part of #1096 |
Subject of the issue
i can drag widge between two placeholder,it seems fine on browser but actually an exception happens
this is the exception
gridstack.js:885 Uncaught TypeError: Cannot set property '_grid' of undefined
at HTMLDivElement. (http://localhost/datav/base/plugins/grid/gridstack.js:885:32)
at HTMLDivElement.dispatch (http://localhost/datav/base/common/js/jquery-2.1.4.js:4435:9)
at HTMLDivElement.elemData.handle (http://localhost/datav/base/common/js/jquery-2.1.4.js:4121:28)
at Object.trigger (http://localhost/datav/base/common/js/jquery-2.1.4.js:4350:12)
at HTMLDivElement. (http://localhost/datav/base/common/js/jquery-2.1.4.js:4901:17)
at Function.each (http://localhost/datav/base/common/js/jquery-2.1.4.js:374:23)
at jQuery.fn.init.each (http://localhost/datav/base/common/js/jquery-2.1.4.js:139:17)
at jQuery.fn.init.trigger (http://localhost/datav/base/common/js/jquery-2.1.4.js:4900:15)
at t.(anonymous function).(anonymous function)._trigger (http://localhost/datav/base/plugins/datav/js/jquery-ui.min.js:6:11056)
at t.(anonymous function).(anonymous function)._drop (http://localhost/datav/base/plugins/datav/js/jquery-ui.min.js:11:12603)
Your environment
Steps to reproduce
$(function () {
var options = {
cell_height: 80,
verticalMargin:2,
acceptWidgets: true
};
$('.grid-stack').gridstack(options);
});
Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead
The text was updated successfully, but these errors were encountered: