fix: toogleAll (#3163)

Co-authored-by: wenyushan <wenyushan@xiaomi.com>
This commit is contained in:
sanmiao 2021-12-07 20:48:46 +08:00 committed by GitHub
parent b04a3896d2
commit c9473cb073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,10 +126,7 @@ export class BaseSelection<
@autobind
toggleAll() {
const {value, onChange, option2value, options, multiple} = this.props;
if (multiple) {
return;
}
const {value, onChange, option2value, options} = this.props;
let valueArray: Array<Option> = [];