File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 13
13
< script type ="module " src ="https://unpkg.com/ionicons@4.5.10-0/dist/ionicons/ionicons.esm.js "> </ script >
14
14
< script nomodule ="" src ="https://unpkg.com/ionicons@4.5.10-0/dist/ionicons/ionicons.js "> </ script >
15
15
16
- < script src ="../dist/gridstack-h5 .js "> </ script >
16
+ < script src ="../dist/gridstack-jq .js "> </ script >
17
17
</ head >
18
18
19
19
< body >
Original file line number Diff line number Diff line change 13
13
< script type ="module " src ="https://unpkg.com/ionicons@4.5.10-0/dist/ionicons/ionicons.esm.js "> </ script >
14
14
< script nomodule ="" src ="https://unpkg.com/ionicons@4.5.10-0/dist/ionicons/ionicons.js "> </ script >
15
15
16
- < script src ="../dist/gridstack-h5 .js "> </ script >
16
+ < script src ="../dist/gridstack-jq .js "> </ script >
17
17
18
18
< style type ="text/css ">
19
19
.grid-stack-item-removing {
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
+ - [ 4.2.5 (2021-5-31)] ( #425-2021-5-31 )
8
9
- [ 4.2.4 (2021-5-29)] ( #424-2021-5-29 )
9
10
- [ 4.2.3 (2021-5-8)] ( #423-2021-5-8 )
10
11
- [ 4.2.2 (2021-4-23)] ( #422-2021-4-23 )
@@ -57,6 +58,10 @@ Change log
57
58
- [ v0.1.0 (2014-11-18)] ( #v010-2014-11-18 )
58
59
59
60
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
61
+ ## 4.2.5 (2021-5-31)
62
+
63
+ * fix for website with JQ ` droppable('destroy') ` giving error
64
+
60
65
## 4.2.4 (2021-5-29)
61
66
62
67
* fix [ #1760 ] ( https://github.com/gridstack/gridstack.js/issues/1760 ) ` removable:true ` working again (broke in 4.x)
Original file line number Diff line number Diff line change @@ -90,7 +90,13 @@ export class GridStackDDJQueryUI extends GridStackDD {
90
90
opts . _accept = opts . accept ;
91
91
opts . accept = ( $el : JQuery ) => opts . _accept ( $el . get ( 0 ) ) ;
92
92
}
93
- $el . droppable ( opts , key , value ) ;
93
+ if ( opts === 'disable' || opts === 'destroy' ) {
94
+ if ( $el . data ( 'ui-droppable' ) ) { // error to call destroy if not there
95
+ $el . droppable ( opts ) ;
96
+ }
97
+ } else {
98
+ $el . droppable ( opts , key , value ) ;
99
+ }
94
100
return this ;
95
101
}
96
102
You can’t perform that action at this time.
0 commit comments