Fixed: (UI) Prevent search results clearing when using header search with enter key

This commit is contained in:
Bogdan
2023-07-06 00:16:56 +03:00
parent 6769055b6b
commit 062fd77e1b

View File

@@ -55,7 +55,9 @@ class SearchFooter extends Component {
this.onSearchPress();
}
this.props.bindShortcut('enter', this.onSearchPress, { isGlobal: true });
setTimeout(() => {
this.props.bindShortcut('enter', this.onSearchPress, { isGlobal: true });
});
}
componentDidUpdate(prevProps) {
@@ -120,7 +122,6 @@ class SearchFooter extends Component {
};
onSearchPress = () => {
const {
searchLimit,
searchOffset,