Closed andreccorrea closed 3 years ago
Trying to access any select2 method on the select throws an error. It seems that DAL doesn't pass the select2 class to it.
$('#my_select2').select2('open') The select2('open') method was called on an element that is not using Select2.
I've discovered that the error occurs because autocomplete.js isn't loaded yet on "$(document).ready()". So, how can I know that it has been initialized?
Trying to access any select2 method on the select throws an error. It seems that DAL doesn't pass the select2 class to it.