fix: search file name by repo_id

This commit is contained in:
jialin
2024-06-15 20:41:26 +08:00
parent b416a14554
commit 2352c316c0
6 changed files with 98 additions and 14 deletions
+3 -2
View File
@@ -13,6 +13,7 @@ const SealAutoComplete: React.FC<AutoCompleteProps & SealFormItemProps> = (
required,
description,
isInFormItems = true,
onSelect,
...rest
} = props;
const [isFocus, setIsFocus] = useState(false);
@@ -48,8 +49,8 @@ const SealAutoComplete: React.FC<AutoCompleteProps & SealFormItemProps> = (
const handleOnBlur = (e: any) => {
if (!props.value) {
setIsFocus(false);
props.onBlur?.(e);
}
props.onBlur?.(e);
};
const handleSearch = (text: string) => {
@@ -57,7 +58,7 @@ const SealAutoComplete: React.FC<AutoCompleteProps & SealFormItemProps> = (
};
const handleOnSelect = (value: any, option: any) => {
props.onSelect?.(value, option);
onSelect?.(value, option);
};
return (