We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 75227e4 + 4961acd commit 2048348Copy full SHA for 2048348
.gitignore
@@ -6,3 +6,4 @@ coverage
6
dist
7
node_modules
8
.vscode
9
+.idea/
src/gridstack.ts
@@ -790,8 +790,10 @@ export class GridStack {
790
* enable/disable floating widgets (default: `false`) See [example](http://gridstackjs.com/demo/float.html)
791
*/
792
public float(val: boolean): GridStack {
793
- this.engine.float = val;
794
- this._triggerChangeEvent();
+ if (this.opts.float !== val) {
+ this.opts.float = this.engine.float = val;
795
+ this._triggerChangeEvent();
796
+ }
797
return this;
798
}
799
0 commit comments