limitReached:Improve robustness when it does not set a default value

pull/8677/head
yoyo837 2017-12-04 16:47:11 +08:00 committed by 杨奕
parent f5aa24e419
commit 216cf0c990
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@
limitReached() { limitReached() {
if (this.select.multiple) { if (this.select.multiple) {
return !this.itemSelected && return !this.itemSelected &&
this.select.value.length >= this.select.multipleLimit && (this.select.value || []).length >= this.select.multipleLimit &&
this.select.multipleLimit > 0; this.select.multipleLimit > 0;
} else { } else {
return false; return false;