fix: query is not updated on deploy page when tap enter
This commit is contained in:
@@ -180,11 +180,13 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
|
||||
);
|
||||
const handleSearchInputChange = useCallback((e: any) => {
|
||||
searchInputRef.current = e.target.value;
|
||||
console.log('change:', searchInputRef.current);
|
||||
}, []);
|
||||
const handlerSearchModels = useCallback(
|
||||
async (e: any) => {
|
||||
searchInputRef.current = e.target.value;
|
||||
handleOnSearchRepo();
|
||||
setTimeout(() => {
|
||||
handleOnSearchRepo();
|
||||
}, 100);
|
||||
},
|
||||
[handleOnSearchRepo]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user