File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -427,7 +427,7 @@ export class GridStack {
427
427
// check for HTML content as well
428
428
if ( saveContent ) {
429
429
list . forEach ( n => {
430
- if ( n . el ) {
430
+ if ( n . el && ! n . subGrid ) { // sub-grid are saved differently, not plain content
431
431
let sub = n . el . querySelector ( '.grid-stack-item-content' ) ;
432
432
n . content = sub ? sub . innerHTML : undefined ;
433
433
if ( ! n . content ) delete n . content ;
@@ -442,7 +442,7 @@ export class GridStack {
442
442
// check for nested grid
443
443
list . forEach ( n => {
444
444
if ( n . subGrid ) {
445
- n . subGrid = ( n . subGrid as GridStack ) . save ( saveContent , true ) as GridStackOptions ;
445
+ n . subGrid = ( n . subGrid as GridStack ) . save ( saveContent , saveGridOpt ) as GridStackOptions ;
446
446
}
447
447
} )
448
448
You can’t perform that action at this time.
0 commit comments