We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 79a0f1d + dae97ff commit 78e686cCopy full SHA for 78e686c
1 file changed
select2.js
@@ -2739,7 +2739,9 @@ the specific language governing permissions and limitations under the Apache Lic
2739
2740
//If all results are chosen render formatNoMAtches
2741
if(!this.opts.createSearchChoice && !choices.filter('.select2-result:not(.select2-selected)').length > 0){
2742
- this.results.append("<li class='select2-no-results'>" + self.opts.formatNoMatches(self.search.val()) + "</li>");
+ if(!data || data && !data.more) {
2743
+ this.results.append("<li class='select2-no-results'>" + self.opts.formatNoMatches(self.search.val()) + "</li>");
2744
+ }
2745
}
2746
2747
},
0 commit comments