Skip to content

Commit 1385b56

Browse files
authored
Merge pull request #1506 from infime/fix-h5-resizable-tgl
HTML dnd check for setup ddResizable before enable/disable
2 parents 3054569 + b1668ae commit 1385b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/h5/gridstack-dd-native.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class GridStackDDNative extends GridStackDD {
2424
public resizable(el: GridItemHTMLElement, opts: DDOpts, key?: DDKey, value?: DDValue): GridStackDDNative {
2525
this._getDDElements(el).forEach(dEl => {
2626
if (opts === 'disable' || opts === 'enable') {
27-
dEl.ddResizable[opts]();
27+
dEl.ddResizable && dEl.ddResizable[opts]();
2828
} else if (opts === 'destroy') {
2929
if (dEl.ddResizable) {
3030
dEl.cleanResizable();

0 commit comments

Comments
 (0)