Permalink
Browse files

fix #444 input value maybe undefined

  • Loading branch information...
pingan1927 authored and warmhug committed Nov 2, 2016
1 parent c37ac45 commit 114fb1ed871acd94433129fda95a30649420aa2a
Showing with 2 additions and 2 deletions.
  1. +1 −1 components/input-item/index.web.tsx
  2. +1 −1 components/textarea-item/index.web.tsx
@@ -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),
};
@@ -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),
};

0 comments on commit 114fb1e

Please sign in to comment.