MM-11006 Fix android seach field population for in and from keywords (#1806)
This commit is contained in:
parent
8aa4c1467d
commit
d07d85ef9d
1 changed files with 10 additions and 0 deletions
|
|
@ -71,6 +71,16 @@ export default class SearchBarAndroid extends PureComponent {
|
|||
};
|
||||
}
|
||||
|
||||
static getDerivedStateFromProps(nextProps, prevState) {
|
||||
if (nextProps.value !== prevState.value) {
|
||||
return {
|
||||
value: nextProps.value,
|
||||
};
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
cancel = () => {
|
||||
this.onCancelButtonPress();
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue