Skip to content

Commit

Permalink
Merge 2c7ce6e into 794a4b6
Browse files Browse the repository at this point in the history
  • Loading branch information
ysimsek committed Jul 19, 2017
2 parents 794a4b6 + 2c7ce6e commit e21095d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Validator.jsx
Expand Up @@ -83,7 +83,9 @@ class Validator extends React.Component {
// https://github.com/react-component/form-validation/issues/13
extraProps.placeholder = undefined;
}
return React.cloneElement(child, extraProps);
return (<div className={this.props.className}>
{React.cloneElement(child, extraProps)}
</div>);
}
}

Expand Down

0 comments on commit e21095d

Please sign in to comment.