diff --git a/client/components/combobox.jsx b/client/components/combobox.jsx index 66e7053da..8963bcf68 100644 --- a/client/components/combobox.jsx +++ b/client/components/combobox.jsx @@ -75,6 +75,13 @@ const Combobox = createClass({ onChange={(e)=>this.handleInput(e)} value={this.state.value || ''} placeholder={this.props.placeholder} + onBlur={(e)=>{ + if(!e.target.checkValidity()){ + this.setState({ + value : this.props.default + }, ()=>this.props.onEntry(e)); + } + }} /> );