diff --git a/scm-ui-components/packages/ui-components/src/forms/Textarea.js b/scm-ui-components/packages/ui-components/src/forms/Textarea.js index 0bf386aca7..5a14b3407a 100644 --- a/scm-ui-components/packages/ui-components/src/forms/Textarea.js +++ b/scm-ui-components/packages/ui-components/src/forms/Textarea.js @@ -8,10 +8,11 @@ export type SelectItem = { }; type Props = { + name?: string, label?: string, placeholder?: SelectItem[], value?: string, - onChange: string => void, + onChange: (value: string, name?: string) => void, helpText?: string }; @@ -19,7 +20,7 @@ class Textarea extends React.Component { field: ?HTMLTextAreaElement; handleInput = (event: SyntheticInputEvent) => { - this.props.onChange(event.target.value); + this.props.onChange(event.target.value, this.props.name); }; render() {