Corrected check for opening the dropdown
Corrected check for opening the dropdown

This corrects the check that was used when the dropdown was opened, so
the results would be immediately rendered instead of delaying the
loading. Previously it would delay the immediate load but immediately
load the results when the search term was emptied.

This closes https://github.com/select2/select2/issues/4191
This closes https://github.com/select2/select2/pull/4192
This closes https://github.com/select2/select2/pull/4202

ZaArsProgger/select2,ZaArsProgger/select2,fk/select2,iestruch/select2,inway/select2,select2/select2,michael-brade/select2,select2/select2,inway/select2,bottomline/select2,iestruch/select2,NabiKAZ/select2,fk/select2,michael-brade/select2,bottomline/select2,NabiKAZ/select2