Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/gridstack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2084,7 +2084,7 @@ export class GridStack {
// restore any temp removed (dragged over trash)
GridStack._itemRemoving(n.el, false);
}

this.engine.restoreInitial();
}

Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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} } `;
}
Expand Down