From 48d9dcaa45194da3c7428a860bda4c7a4ead4293 Mon Sep 17 00:00:00 2001 From: mama Date: Tue, 30 Jan 2018 17:59:39 +0100 Subject: [PATCH] =?UTF-8?q?:bug:=20:sparkles:=20R=C3=A9solution=20d'un=20b?= =?UTF-8?q?ug=20sur=20le=20double=20clic=20pour=20valider?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit RĂ©solution du bug = suppression d'un state React inutile --- source/components/conversation/Question.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source/components/conversation/Question.js b/source/components/conversation/Question.js index 6790a04b7..09843c337 100644 --- a/source/components/conversation/Question.js +++ b/source/components/conversation/Question.js @@ -133,13 +133,8 @@ let RadioLabel = props => ( @HoverDecorator class RadioLabelContent extends Component { - state = { - active: null - } click = value => () => { - this.props.setFormValue(value) - if (this.state.active !== value) this.setState({ active: value }) - else this.props.submit('dblClick') + if (this.props.input.value == value) this.props.submit('dblClick') } render() { let { value, label, input, hover, themeColours } = this.props,