Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
initSortable () {
if (this.sortable) {
this.__sortable = new Sortable(this.element.querySelector('.tbody'), {
draggable: '.tr',
handle: '.drag-handle'
});
this.__sortable.on('sortable:stop', () => { this.updateDataOnSort(); });
}
}