Merge pull request #934 from ant-design/fix-form

fix: help is generate automatically now
This commit is contained in:
afc163
2016-01-26 18:21:20 +08:00
+1 -1
View File
@@ -142,7 +142,7 @@ class FormItem extends React.Component {
const prefixCls = props.prefixCls;
const itemClassName = {
[`${prefixCls}-item`]: true,
[`${prefixCls}-item-with-help`]: !!props.help,
[`${prefixCls}-item-with-help`]: !!this.getHelpMsg(),
[`${props.className}`]: !!props.className,
};