From c7f498349ad6bd34490fea8c73200ae51b2b4ee7 Mon Sep 17 00:00:00 2001 From: mama Date: Wed, 24 Jan 2018 10:51:08 +0100 Subject: [PATCH] Le second clic sur une suggestion la valide --- source/components/conversation/Input.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/components/conversation/Input.js b/source/components/conversation/Input.js index 50821e296..f046861cd 100644 --- a/source/components/conversation/Input.js +++ b/source/components/conversation/Input.js @@ -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 })