From 57ce4d6e7d19c30bba394edb4fdf866883d76a2e Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 7 Mar 2019 14:45:18 +0000 Subject: [PATCH] Call the parent component's `onChange` if it exists --- src/components/views/elements/Field.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/views/elements/Field.js b/src/components/views/elements/Field.js index b710872d2d..4ccb3e9440 100644 --- a/src/components/views/elements/Field.js +++ b/src/components/views/elements/Field.js @@ -70,6 +70,10 @@ export default class Field extends React.PureComponent { feedback: result.feedback, }); } + // Parent component may have supplied its own `onChange` as well + if (this.props.onChange) { + this.props.onChange(ev); + } }; render() {