Skip to content

Commit

Permalink
Prevent returnning previous results when ajax is running #4854
Browse files Browse the repository at this point in the history
  • Loading branch information
BoPeng committed May 27, 2023
1 parent 4de1d23 commit 9602d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/select2/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ define([
var $loading = this.option(loading);
$loading.className += ' loading-results';

this.$results.prepend($loading);
this.$results.html($loading);
};

Results.prototype.hideLoading = function () {
Expand Down

0 comments on commit 9602d5b

Please sign in to comment.