Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uncaught Error: cannot call methods on sortable prior to initialization; attempted to call method 'option'

I am getting this error when trying to use ui-sortable.

jquery-3.1.0.min.js:2 Uncaught Error: cannot call methods on sortable prior to initialization; attempted to call method 'option'

Thanks in advance.

like image 821
Anavar Bharmal Avatar asked Jan 28 '26 15:01

Anavar Bharmal


1 Answers

The meaning of your error is : $this.draggable('enable'); is called before $this.draggable();.

Check the execution flow of your program : make sure that you have indeed initialized the plugin (e.g : called $this.draggable();) before trying to do anything with it.

like image 161
Alondra Avatar answered Jan 31 '26 06:01

Alondra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!