Skip to content

Commit

Permalink
fix: not being able to create sortable, fix #162
Browse files Browse the repository at this point in the history
  • Loading branch information
smnbbrv committed Jun 7, 2019
1 parent 90f50e3 commit 5a62f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-sortablejs/src/lib/sortablejs.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class SortablejsDirective implements OnInit, OnChanges, OnDestroy {
}

private create() {
const container = this.sortablejsContainer ? this.element.nativeElement : this.element.nativeElement.querySelector(this.sortablejsContainer);
const container = this.sortablejsContainer ? this.element.nativeElement.querySelector(this.sortablejsContainer) : this.element.nativeElement;

setTimeout(() => {
this.sortableInstance = Sortable.create(container, this.options);
Expand Down

0 comments on commit 5a62f02

Please sign in to comment.