Open alexjohnp opened 7 years ago
Sorry, the final part of the message got truncated and I didn't notice it.
The previous code shows minimumInputLength = 3 chars, and it works perfectly. If i try to set minimumInputLength = 0, so that the controller should be fired immediately (i.e. without any other user input), nothing happens. Just as that parameter is completely ignored.
I couldn't find any hint by reading the documentation, or even elsewhere. Is this the way select2 is supposed to be used, or is there anything wrong?
Thank you in advance. A.
Hello, I'm trying to show results from a select2 with ajax, but minimuminputlength parameter is ignored when set to 0. What I need to do is to run the ajax call when the select2 is clicked (i.e. with no need for the user to type any key).
Here the view's code
$urlProvincia is resolved in controller as follows:
I couldn't find any hint by reading the documentation, or even elsewhere. Is this the way select2 is supposed to be used, or is there anything wrong?
Thank you in advance. A.