diff --git a/source/components/conversation/Input.js b/source/components/conversation/Input.js index dd9ca8349..9f8327feb 100644 --- a/source/components/conversation/Input.js +++ b/source/components/conversation/Input.js @@ -12,12 +12,11 @@ export default class Input extends Component { let { name, input, - stepProps: {attributes, submit, valueType, suggestions, setFormValue}, + stepProps: {attributes, submit, valueType, suggestions}, meta: { touched, error, active, }, themeColours, - } = this.props, answerSuffix = valueType.suffix, suffixed = answerSuffix != null, @@ -54,13 +53,14 @@ export default class Input extends Component { - {this.renderSuggestions(suggestions)} + {this.renderSuggestions()} {inputError && {error}} ) } - renderSuggestions(suggestions){ + renderSuggestions(){ + let {setFormValue, submit, suggestions} = this.props.stepProps if (!suggestions) return null return ( suggestions: