You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Call the parent component's onChange if it exists
This commit is contained in:
@@ -70,6 +70,10 @@ export default class Field extends React.PureComponent {
|
|||||||
feedback: result.feedback,
|
feedback: result.feedback,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// Parent component may have supplied its own `onChange` as well
|
||||||
|
if (this.props.onChange) {
|
||||||
|
this.props.onChange(ev);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|||||||
Reference in New Issue
Block a user