Skip to content

Commit

Permalink
fix(module:radio): fix radio button click bug
Browse files Browse the repository at this point in the history
close #854
  • Loading branch information
执衡 committed Jan 6, 2018
1 parent 0384eec commit 3d4c878
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/radio/nz-radio-button.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ import { NzRadioComponent } from './nz-radio.component';
]
})
export class NzRadioButtonComponent extends NzRadioComponent implements OnInit {
private _radioButtonDisabled = false;
private _radioButtonChecked = false;
_disabled = false;
_prefixCls = 'ant-radio-button';
_innerPrefixCls = `${this._prefixCls}-inner`;
_inputPrefixCls = `${this._prefixCls}-input`;

@Input()
@HostBinding('class.ant-radio-button-wrapper-disabled')
set nzDisabled(value: boolean) {
this._radioButtonDisabled = toBoolean(value);
this._disabled = toBoolean(value);
this.setClassMap();
}

get nzDisabled(): boolean {
return this._radioButtonDisabled;
return this._disabled;
}

@Input()
Expand Down
2 changes: 1 addition & 1 deletion src/components/radio/nz-radio.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ import { NzRadioGroupComponent } from './nz-radio-group.component';
})
export class NzRadioComponent implements OnInit, ControlValueAccessor {
private _checked = false;
private _disabled = false;
private _focused = false;
_disabled = false;
_el: HTMLElement;
_classMap;
_value: string;
Expand Down

0 comments on commit 3d4c878

Please sign in to comment.