File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
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
+ - [ 4.2.5-dev (TBD)] ( #425-dev-tbd )
8
9
- [ 4.2.5 (2021-5-31)] ( #425-2021-5-31 )
9
10
- [ 4.2.4 (2021-5-29)] ( #424-2021-5-29 )
10
11
- [ 4.2.3 (2021-5-8)] ( #423-2021-5-8 )
@@ -58,6 +59,10 @@ Change log
58
59
- [ v0.1.0 (2014-11-18)] ( #v010-2014-11-18 )
59
60
60
61
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
62
+ ## 4.2.5-dev (TBD)
63
+
64
+ * fix [ #1784 ] ( https://github.com/gridstack/gridstack.js/issues/1784 ) ` removable:true ` working by itself (without needing ` acceptWidgets:true ` )
65
+
61
66
## 4.2.5 (2021-5-31)
62
67
63
68
* fix for website with JQ ` droppable('destroy') ` giving error
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export abstract class GridStackDD extends GridStackDDI {
76
76
GridStack . prototype . _setupAcceptWidget = function ( this : GridStack ) : GridStack {
77
77
78
78
// check if we need to disable things
79
- if ( this . opts . staticGrid || ! this . opts . acceptWidgets ) {
79
+ if ( this . opts . staticGrid || ( ! this . opts . acceptWidgets && ! this . opts . removable ) ) {
80
80
GridStackDD . get ( ) . droppable ( this . el , 'destroy' ) ;
81
81
return this ;
82
82
}
You can’t perform that action at this time.
0 commit comments