File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ Change log
115
115
116
116
## 10.3.0-dev (TBD)
117
117
* fix: [ #2734 ] ( https://github.com/gridstack/gridstack.js/bug/2734 ) rotate() JS error
118
- * fix: [ #2739 ] ( https://github.com/gridstack/gridstack.js/pull/2739 ) resizeToContent JS error with nested grid
118
+ * fix: [ #2741 ] ( https://github.com/gridstack/gridstack.js/pull/2741 ) resizeToContent JS error with nested grid
119
+ * fix: [ #2740 ] ( https://github.com/gridstack/gridstack.js/bug/2740 ) nested grid drag fix
119
120
120
121
## 10.3.0 (2024-06-26)
121
122
* fix: [ #2720 ] ( https://github.com/gridstack/gridstack.js/pull/2720 ) load() now creates widgets in order (used to be reverse due to old collision code)
Original file line number Diff line number Diff line change @@ -79,8 +79,9 @@ export class DDDraggable extends DDBaseImplement implements HTMLElementExtendOpt
79
79
super ( ) ;
80
80
81
81
// get the element that is actually supposed to be dragged by
82
- let handleName = option . handle . substring ( 1 ) ;
83
- this . dragEls = el . classList . contains ( handleName ) ? [ el ] : Array . from ( el . querySelectorAll ( option . handle ) ) ;
82
+ const handleName = option . handle . substring ( 1 ) ;
83
+ const n = el . gridstackNode ;
84
+ this . dragEls = el . classList . contains ( handleName ) ? [ el ] : ( n ?. subGrid ? [ el . querySelector ( option . handle ) || el ] : Array . from ( el . querySelectorAll ( option . handle ) ) ) ;
84
85
if ( this . dragEls . length === 0 ) {
85
86
this . dragEls = [ el ] ;
86
87
}
You can’t perform that action at this time.
0 commit comments