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() {
|
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;
|
||||||
|
|
Loading…
Reference in New Issue