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

This commit is contained in:
jialin
2024-12-12 10:03:16 +08:00
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]
);