Skip to content

Commit

Permalink
fix: checked value of native input
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeLin committed Mar 16, 2020
1 parent c75d4d7 commit fe380f3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default class Checkbox extends PureComponent<CheckboxProps, CheckboxState
className={`${prefixCls}__input`}
value={value}
disabled={disabled}
checked={checked}
checked={checkedState}
onChange={this.onValueChange}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exports[`Checkbox defaultChecked 1`] = `
foo
</span>
<input
checked=""
class="za-checkbox__input"
type="checkbox"
/>
Expand Down
2 changes: 1 addition & 1 deletion components/radio/Radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class Radio extends PureComponent<RadioProps, RadioStates> {
className={`${prefixCls}__input`}
value={value}
disabled={disabled}
checked={checked}
checked={checkedState}
onChange={this.onValueChange}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exports[`Radio defaultChecked 1`] = `
选项一
</span>
<input
checked=""
class="za-radio__input"
type="radio"
value="0"
Expand Down

0 comments on commit fe380f3

Please sign in to comment.