-
-
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
3.0.0 HTML5 drag'n'drop initial GridStack.enable() Error #1505
Comments
thanks for the effort! let find a reproduceable case and I will fix it! looks like you are calling enable on a static grid maybe ??? (no DD created and jumping to enabling on null DD) public enableResize(doEnable: boolean, includeNewWidgets = true): GridStack {
if (doEnable && this.opts.staticGrid) { return this; } // can't size a static grid! should prevent https://gridstackjs.com/demo/static.html is exactly to test this BUT it uses setStatic(true/false) which is more permanent version of enable()/disable(). I need to refresh my memory why we have both method |
Nope no static grid involved, I think it's potentially related to using |
https://jsfiddle.net/anzojxum/19/ reproduces the issue. It's being triggered when calling |
ha, that makes sense... taking a look. |
* fix for gridstack#1505 * make sure we don't call movable()/resizable() on locked items to start with * prevent staticGrid from having enable/disable state changes as well * better doc
Subject of the issue
Calling enable() with the new native drag'n'drop throws an Error.
Your environment
Steps to reproduce
Will follow up with a reproduction
Expected behavior
Calling enable should not throw an error
Actual behavior
Stack trace
The text was updated successfully, but these errors were encountered: