Skip to content

Commit 307afa1

Browse files
authored
Merge pull request #1724 from adumesny/master
JQ nested grid drag
2 parents 6b95508 + e75c004 commit 307afa1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

doc/CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Change log
55
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
66
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
77

8+
- [4.2.0-dev](#420-dev)
89
- [4.2.0 (2021-4-11)](#420-2021-4-11)
910
- [4.1.0 (2021-4-7)](#410-2021-4-7)
1011
- [4.0.3 (2021-3-28)](#403-2021-3-28)
@@ -53,6 +54,10 @@ Change log
5354
- [v0.1.0 (2014-11-18)](#v010-2014-11-18)
5455

5556
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
57+
## 4.2.0-dev
58+
59+
- fix [#1700](https://github.com/gridstack/gridstack.js/issues/1700) JQ nested grid drag fix broken in 4.0.3 (but much older underlying issue)
60+
5661
## 4.2.0 (2021-4-11)
5762

5863
- fix [#1704](https://github.com/gridstack/gridstack.js/issues/1704) scrollbar fix broken in 4.x

src/jq/gridstack-dd-jqueryui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export class GridStackDDJQueryUI extends GridStackDD {
111111

112112
public on(el: GridItemHTMLElement, name: string, callback: DDCallback): GridStackDD {
113113
let $el: JQuery = $(el);
114-
$el.on(name, (event, ui) => { callback(event as any, ui.draggable ? ui.draggable[0] : event.target, ui.helper ? ui.helper[0] : null) });
114+
$el.on(name, (event, ui) => { return callback(event as any, ui.draggable ? ui.draggable[0] : event.target, ui.helper ? ui.helper[0] : null) });
115115
return this;
116116
}
117117

0 commit comments

Comments
 (0)