mirror of https://github.com/ElemeFE/element
limitReached:Improve robustness when it does not set a default value
parent
f5aa24e419
commit
216cf0c990
|
@ -74,7 +74,7 @@
|
|||
limitReached() {
|
||||
if (this.select.multiple) {
|
||||
return !this.itemSelected &&
|
||||
this.select.value.length >= this.select.multipleLimit &&
|
||||
(this.select.value || []).length >= this.select.multipleLimit &&
|
||||
this.select.multipleLimit > 0;
|
||||
} else {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue