diff --git a/source/components/conversation/Input.js b/source/components/conversation/Input.js index 50162c065..6e6a77b94 100644 --- a/source/components/conversation/Input.js +++ b/source/components/conversation/Input.js @@ -8,7 +8,7 @@ import SendButton from './SendButton' @FormDecorator('input') export default class Input extends Component { state = { - hoverSuggestion: null + lastValue: '' } render() { let { @@ -20,7 +20,6 @@ export default class Input extends Component { answerSuffix = valueType.suffix, suffixed = answerSuffix != null, inputError = dirty && error, - { hoverSuggestion } = this.state, submitDisabled = !dirty || inputError return ( @@ -33,7 +32,6 @@ export default class Input extends Component { }} type="text" {...input} - value={hoverSuggestion != null ? hoverSuggestion : input.value} className={classnames({ suffixed })} id={'step-' + dottedName} {...attributes} @@ -104,7 +102,7 @@ export default class Input extends Component { ) } renderSuggestions(themeColours) { - let { setFormValue, submit, suggestions, inverted } = this.props.stepProps + let { setFormValue, suggestions, inverted } = this.props.stepProps if (!suggestions || inverted) return null return ( @@ -114,16 +112,21 @@ export default class Input extends Component { {toPairs(suggestions).map(([text, value]) => (