fix: query is not updated on deploy page when tap enter

main
jialin 1 year ago
parent c6d82409a8
commit cb5d9f626e

@ -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]
);

Loading…
Cancel
Save