diff --git a/src/gridstack.ts b/src/gridstack.ts index 8a223dc67..a47fb417e 100644 --- a/src/gridstack.ts +++ b/src/gridstack.ts @@ -2084,7 +2084,7 @@ export class GridStack { // restore any temp removed (dragged over trash) GridStack._itemRemoving(n.el, false); } - + this.engine.restoreInitial(); } @@ -2214,7 +2214,7 @@ export class GridStack { // sidebar items: load any element attributes if we don't have a node if (!node) { - const attr = helper.getAttribute('data-gs-widget') || helper.getAttribute('gridstacknode'); // TBD: temp support for old V11.0.0 attribute + const attr = helper.getAttribute('data-gs-widget') || helper.getAttribute('gridstacknode'); // TBD: temp support for old V11.0.0 attribute if (attr) { try { node = JSON.parse(attr); diff --git a/src/utils.ts b/src/utils.ts index 10d9dc04d..9d6903caa 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -228,7 +228,7 @@ export class Utils { /** inserts a CSS rule */ static addCSSRule(sheet: HTMLStyleElement, selector: string, rules: string): void { - // Rather than using sheet.insertRule, use text since it supports + // Rather than using sheet.insertRule, use text since it supports // gridstack node reparenting around in the DOM sheet.textContent += `${selector} { ${rules} } `; }