We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4a3d3c8 + e7f2aea commit 6ea386bCopy full SHA for 6ea386b
1 file changed
select2.js
@@ -2325,7 +2325,7 @@ the specific language governing permissions and limitations under the Apache Lic
2325
if (this.countSelectableResults()>0) {
2326
this.search.width(10);
2327
this.resizeSearch();
2328
- if (this.val().length >= this.getMaximumSelectionSize()) {
+ if (this.getMaximumSelectionSize() > 0 && this.val().length >= this.getMaximumSelectionSize()) {
2329
// if we reached max selection size repaint the results so choices
2330
// are replaced with the max selection reached message
2331
this.updateResults(true);
0 commit comments