Skip to content

Commit

Permalink
fix #444 input value maybe undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
pingan1927 authored and warmhug committed Nov 4, 2016
1 parent c37ac45 commit 114fb1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/input-item/index.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class InputItem extends React.Component<InputItemProps, InputItemState> {
}

let valueProps;
if (value !== undefined) {
if ('value' in this.props) {
valueProps = {
value: fixControlledValue(value),
};
Expand Down
2 changes: 1 addition & 1 deletion components/textarea-item/index.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default class TextareaItem extends React.Component<TextareaItemProps, Tex
editable, disabled, error, className, labelNumber, autoHeight } = this.props;

let valueProps;
if (value !== undefined) {
if ('value' in this.props) {
valueProps = {
value: fixControlledValue(value),
};
Expand Down

0 comments on commit 114fb1e

Please sign in to comment.