Skip to content

Commit 5eec1b5

Browse files
committed
TS: fix removableOptions
1 parent 8c46701 commit 5eec1b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/gridstack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export class GridStack {
192192
rtl: 'auto',
193193
removable: false,
194194
removableOptions: {
195-
accept: '.' + opts.itemClass
195+
accept: '.' + (opts.itemClass || 'grid-stack-item')
196196
},
197197
removeTimeout: 2000,
198198
verticalMarginUnit: 'px',

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export interface GridstackOptions {
112112
resizable?: DDResizeOpt;
113113

114114
/**
115-
* if true widgets could be removed by dragging outside of the grid. It could also be a selector string,
115+
* if true widgets could be removed by dragging outside of the grid. It could also be a selector string (ex: ".trash"),
116116
* in this case widgets will be removed by dropping them there (default?: false)
117117
* See example (http://gridstack.github.io/gridstack.js/demo/two.html)
118118
*/

0 commit comments

Comments
 (0)