File tree Expand file tree Collapse file tree 3 files changed +205
-187
lines changed Expand file tree Collapse file tree 3 files changed +205
-187
lines changed Original file line number Diff line number Diff line change 54
54
"core-js" : " ^3.6.4" ,
55
55
"coveralls" : " ^3.0.9" ,
56
56
"doctoc" : " ^1.4.0" ,
57
- "eslint" : " ^7.12.1 " ,
57
+ "eslint" : " ^7.14 " ,
58
58
"grunt" : " ^1.0.4" ,
59
59
"grunt-cli" : " ^1.3.2" ,
60
60
"grunt-contrib-connect" : " ^3.0.0" ,
67
67
"grunt-protractor-webdriver" : " ^0.2.5" ,
68
68
"grunt-sass" : " 3.1.0" ,
69
69
"jasmine-core" : " ^3.5.0" ,
70
- "karma" : " ^5.2.3 " ,
70
+ "karma" : " ^4 " ,
71
71
"karma-chrome-launcher" : " ^3.1.0" ,
72
72
"karma-cli" : " ^2.0.0" ,
73
73
"karma-jasmine" : " ^4.0.1" ,
74
74
"karma-typescript" : " 4.1.1" ,
75
75
"node-sass" : " ^5.0.0" ,
76
+ "protractor" : " ^7.0.0" ,
76
77
"puppeteer" : " ^5.4.1" ,
77
78
"serve-static" : " ^1.14.1" ,
78
79
"ts-loader" : " ^8.0.7" ,
79
- "typescript" : " ^4.0 .5" ,
80
+ "typescript" : " 3.6 .5" ,
80
81
"webpack" : " ^5.3.2" ,
81
82
"webpack-cli" : " ^4.1.0"
82
83
}
Original file line number Diff line number Diff line change @@ -246,7 +246,8 @@ export class DDDraggable extends DDBaseImplement implements HTMLElementExtendOpt
246
246
/** @internal */
247
247
private _removeHelperStyle ( ) : DDDraggable {
248
248
// don't bother restoring styles if we're gonna remove anyway...
249
- if ( ! ( this . helper as GridItemHTMLElement ) ?. gridstackNode ?. _isAboutToRemove ) {
249
+ let node = this . helper ? ( this . helper as GridItemHTMLElement ) . gridstackNode : undefined ;
250
+ if ( ! node || ! node . _isAboutToRemove ) {
250
251
DDDraggable . originStyleProp . forEach ( prop => {
251
252
this . helper . style [ prop ] = this . dragElementOriginStyle [ prop ] || null ;
252
253
} ) ;
You can’t perform that action at this time.
0 commit comments