1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 10:58:33 +00:00

fix search bug

This commit is contained in:
Michael An
2023-11-09 10:10:41 +08:00
parent c79d841a8f
commit 6d9ecc6fa9

View File

@@ -100,7 +100,7 @@ class Search extends Component {
// not chromecompositionstart -> compositionend -> onChange // not chromecompositionstart -> compositionend -> onChange
// The onChange event will setState and change input value, then setTimeout to initiate the search // The onChange event will setState and change input value, then setTimeout to initiate the search
setTimeout(() => { setTimeout(() => {
this.onSearch(this.state.searchMode === SEARCH_MODE.NORMAL); this.onSearch(true);
}, 1); }, 1);
}; };