mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
[explorev2] adding support for client side validators on controls (#1920)
* Adding support for client side validators on controls * Applying validators to more fields * Addressing comments
This commit is contained in:
committed by
GitHub
parent
fc74fbeeaa
commit
470a6e9d76
@@ -18,16 +18,17 @@ const defaultProps = {
|
||||
|
||||
export default class TextField extends React.Component {
|
||||
onChange(event) {
|
||||
this.props.onChange(this.props.name, event.target.value);
|
||||
this.props.onChange(event.target.value);
|
||||
}
|
||||
render() {
|
||||
const value = this.props.value || '';
|
||||
return (
|
||||
<FormGroup controlId="formInlineName" bsSize="small">
|
||||
<FormControl
|
||||
type="text"
|
||||
placeholder=""
|
||||
onChange={this.onChange.bind(this)}
|
||||
value={this.props.value}
|
||||
value={value}
|
||||
/>
|
||||
</FormGroup>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user