I have a simple example where I try to clean data of elements but after it, I get an error
Error: cannot call methods on draggable prior to initialization; attempted to call method 'destroy'
So, I researched your source code and found that you are trying to destroy component without any conditions and checkshttps://github.com/rniemeyer/knockout-sortable/blob/master/src/knockout-sortable.js#L430
I have a simple example where I try to clean data of elements but after it, I get an error Error: cannot call methods on draggable prior to initialization; attempted to call method 'destroy'
So, I researched your source code and found that you are trying to destroy component without any conditions and checkshttps://github.com/rniemeyer/knockout-sortable/blob/master/src/knockout-sortable.js#L430
and I think you need to add something like this: https://github.com/rniemeyer/knockout-sortable/blob/master/src/knockout-sortable.js#L366
To reproduce: