Le second clic sur une suggestion la valide

pull/151/head
mama 2018-01-24 10:51:08 +01:00
parent 2e0ee3fddf
commit c7f498349a
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,9 @@ export default class Input extends Component {
onClick={() => {
this.setState({ lastValue: null })
setFormValue('' + value)
if (this.state.suggestion !== value)
this.setState({ suggestion: value })
else this.props.stepProps.submit()
}}
onMouseOver={() => {
this.setState({ lastValue: this.props.input.value })