Fix undefined access on checkbox group

Trying to access the checkbox group with having one results in an error. The undefined check prevents the error.
pull/21650/head
besserwisser 2022-01-19 12:02:45 +01:00 committed by GitHub
parent 473ef53f93
commit 6a5a21b4e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@
/* used to make the isDisabled judgment under max/min props */
isLimitDisabled() {
if (!this._checkboxGroup) return true;
const { max, min } = this._checkboxGroup;
return !!(max || min) &&
(this.model.length >= max && !this.isChecked) ||