File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
projects/angular2gridster/src/lib/utils Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -303,16 +303,22 @@ export class Draggable {
303303 }
304304
305305 private fixProblemWithDnDForIE ( element : Element ) {
306- if ( this . isTouchDevice ( ) && this . isIEorEdge ( ) ) {
306+ if ( this . isTouchDevice ( ) && this . isIEorEdge ( ) && ( < HTMLElement > element ) . style ) {
307307 ( < HTMLElement > element ) . style [ 'touch-action' ] = 'none' ;
308308 }
309309 }
310310
311311 private removeTouchActionNone ( element : Element ) {
312+ if ( ! ( < HTMLElement > element ) . style ) {
313+ return ;
314+ }
312315 ( < HTMLElement > element ) . style [ 'touch-action' ] = '' ;
313316 }
314317
315318 private addTouchActionNone ( element ) {
319+ if ( ! ( < HTMLElement > element ) . style ) {
320+ return ;
321+ }
316322 ( < HTMLElement > element ) . style [ 'touch-action' ] = 'none' ;
317323 }
318324
You can’t perform that action at this time.
0 commit comments