Skip to content

Commit 7f59f49

Browse files
CodingCloud9527CodingCloud9527
CodingCloud9527
authored and
CodingCloud9527
committed
fix: sortablejs directive no longer supports runInsideAngular property
1 parent aaa43d9 commit 7f59f49

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

projects/ngx-sortablejs/src/lib/sortablejs.directive.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ export class SortablejsDirective implements OnInit, OnChanges, OnDestroy {
5454

5555
private sortableInstance: any;
5656

57-
@Input() runInsideAngular = false; // to be deprecated
58-
5957
@Output() sortablejsInit = new EventEmitter();
6058

6159
constructor(
@@ -69,11 +67,7 @@ export class SortablejsDirective implements OnInit, OnChanges, OnDestroy {
6967

7068
ngOnInit() {
7169
if (Sortable && Sortable.create) { // Sortable does not exist in angular universal (SSR)
72-
if (this.runInsideAngular) {
73-
this.create();
74-
} else {
75-
this.zone.runOutsideAngular(() => this.create());
76-
}
70+
this.create();
7771
}
7872
}
7973

0 commit comments

Comments
 (0)