Commit 216cf0c9 authored by yoyo837's avatar yoyo837 Committed by 杨奕

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

parent f5aa24e4
...@@ -74,7 +74,7 @@ ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment