fix fieldOption

This commit is contained in:
yiminghe 2016-01-27 14:35:21 +08:00
parent bf7caf9dda
commit df326bea67
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ class FormItem extends React.Component {
const context = this.context;
const props = this.props;
let children = null;
if (context.form && props.id && props.fieldOption) {
if (context.form && props.id) {
const child = React.Children.only(props.children);
const size = {};
if (typeof child.type === 'function' && !child.props.size) {

View File

@ -1,6 +1,6 @@
{
"name": "antd",
"version": "0.12.0-beta.27",
"version": "0.12.0-beta.28",
"title": "Ant Design",
"description": "一个 UI 设计语言",
"homepage": "http://ant.design/",