[bugfix] Checkbox: uncheckable when inside cell (#2855)

This commit is contained in:
neverland 2019-02-26 19:58:54 +08:00 committed by GitHub
parent 5cb0edbf39
commit 7d5bfffd50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,10 @@ export const CheckboxMixin = (parent, bem) => ({
> >
<div <div
class={bem('icon', [this.shape, { disabled: this.isDisabled, checked }])} class={bem('icon', [this.shape, { disabled: this.isDisabled, checked }])}
onClick={this.onClickIcon} onClick={event => {
event.stopPropagation();
this.onClickIcon();
}}
> >
{CheckIcon} {CheckIcon}
</div> </div>