File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Change log
5
5
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
6
6
** Table of Contents** * generated with [ DocToc] ( http://doctoc.herokuapp.com/ ) *
7
7
8
+ - [ 7.0.1 (2022-10-14)] ( #701-2022-10-14 )
8
9
- [ 7.0.0 (2022-10-09)] ( #700-2022-10-09 )
9
10
- [ 6.0.3 (2022-10-08)] ( #603-2022-10-08 )
10
11
- [ 6.0.2 (2022-09-23)] ( #602-2022-09-23 )
@@ -73,6 +74,10 @@ Change log
73
74
74
75
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
75
76
77
+ ## 7.0.1 (2022-10-14)
78
+ * fixed [ #2073 ] ( https://github.com/gridstack/gridstack.js/issues/2073 ) SSR (server side rendering) isTouch issue (introduced in v6)
79
+ * fixed - removing last item delete sub-grid that are not auto-generated (nested.html vs nested_advanced.html)
80
+
76
81
## 7.0.0 (2022-10-09)
77
82
* add [ #1009 ] ( https://github.com/gridstack/gridstack.js/issues/1009 ) Create sub-grids on the fly,
78
83
by dragging items completely over others (nest) vs partially (push) using new flag ` GridStackOptions.subGridDynamic=true ` .
Original file line number Diff line number Diff line change @@ -337,8 +337,8 @@ GridStack.prototype._setupAcceptWidget = function(this: GridStack): GridStack {
337
337
let oGrid = origNode . grid ;
338
338
oGrid . engine . removedNodes . push ( origNode ) ;
339
339
oGrid . _triggerRemoveEvent ( ) ;
340
- // if it's an empty sub-grid, nuke it
341
- if ( oGrid . parentGridItem && ! oGrid . engine . nodes . length ) {
340
+ // if it's an empty sub-grid, to get auto-created, nuke it
341
+ if ( oGrid . parentGridItem && ! oGrid . engine . nodes . length && oGrid . opts . subGridDynamic ) {
342
342
oGrid . removeAsSubGrid ( ) ;
343
343
}
344
344
}
You can’t perform that action at this time.
0 commit comments