Skip to content

Commit 376e406

Browse files
committed
regression fix: nested grids style issue
* while fixing #2110 I broke nested grid styles when manually dragging to sub-nest.
1 parent 662d33e commit 376e406

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

doc/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Change log
8282

8383
## 7.2.1-dev (TBD)
8484
* fix [#2171](https://github.com/gridstack/gridstack.js/issues/2171) `save()` nested grid has extra nested children & options
85+
* regression for fix #2110: nested grids lost their styles causing wrong rendering when dragging to create sub nesting
8586

8687
## 7.2.1 (2023-01-14)
8788
* fix [#2162](https://github.com/gridstack/gridstack.js/pull/2162) removing item from a grid (into another) will now call `change` if anything was also modified during the remove

src/gridstack.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1967,7 +1967,6 @@ export class GridStack {
19671967
Utils.copyPos(node, this._readAttr(this.placeholder)); // placeholder values as moving VERY fast can throw things off #1578
19681968
Utils.removePositioningStyles(el);// @ts-ignore
19691969
this._writeAttr(el, node);
1970-
el.className = '';
19711970
el.classList.add(gridDefaults.itemClass, this.opts.itemClass);
19721971
this.el.appendChild(el);// @ts-ignore // TODO: now would be ideal time to _removeHelperStyle() overriding floating styles (native only)
19731972
if (subGrid) {

0 commit comments

Comments
 (0)