Merge pull request #589 from ant-design/fix-issue-586

fix: fixes #586.
This commit is contained in:
afc163 2015-11-25 11:12:45 +08:00
commit 813be9145d
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
```html
<Form.Item {...props}>
{children}
</Form.Item>`
</Form.Item>
```
## Input 输入框

View File

@ -79,7 +79,7 @@ class Input extends React.Component {
}
switch (props.type) {
case 'textarea':
return <textarea {...props} placeholder={placeholder} className={inputClassName} ref="input" />;
return <textarea {...props} value={props.value || props.defaultValue} placeholder={placeholder} className={inputClassName} ref="input" />;
default:
inputClassName = props.className ? props.className : inputClassName;
return <input {...props} placeholder={placeholder} className={inputClassName} ref="input"/>;

View File

@ -45,7 +45,7 @@ const Demo = React.createClass({
select: undefined,
multiSelect: undefined,
radio: undefined,
birthday: undefined,
birthday: null,
primeNumber: 9
}
};