fix(RadioGroup): disabled prop not work (#4242)

This commit is contained in:
neverland
2019-08-26 16:31:59 +08:00
committed by GitHub
parent f172842c02
commit 2489ba2b79
2 changed files with 32 additions and 1 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ export const CheckboxMixin = ({ parent, bem, role }) => ({
const { target } = event;
const labelClicked = label && (label === target || label.contains(target));
if (!this.disabled && !(labelClicked && this.labelDisabled)) {
if (!this.isDisabled && !(labelClicked && this.labelDisabled)) {
this.toggle();
}