remove unused className, #6144

This commit is contained in:
afc163 2017-05-15 18:20:31 +08:00
parent 010860ae0f
commit 1165200dcc

View File

@ -205,13 +205,8 @@ export default class Input extends Component<InputProps & HTMLInputProps, any> {
</span>
) : null;
// https://github.com/ant-design/ant-design/issues/6144
const affixWrapperClassName = classNames(`${props.prefixCls}-affix-wrapper`, {
[`${props.prefixCls}-affix-wrapper-has-height`]: (props.style && 'height' in props.style),
});
return (
<span className={affixWrapperClassName} style={props.style}>
<span className={`${props.prefixCls}-affix-wrapper`} style={props.style}>
{prefix}
{cloneElement(children, { style: null })}
{suffix}