mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Call the parent component's onChange
if it exists
This commit is contained in:
parent
7241418eba
commit
57ce4d6e7d
1 changed files with 4 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue