Updates
This commit is contained in:
@@ -56,11 +56,11 @@ export default function Search<KeyType extends string>({
|
||||
|
||||
const inputRef = componentRef || React.useRef<HTMLInputElement>(null);
|
||||
|
||||
React.useEffect(() => {
|
||||
if (props.autoFocus) {
|
||||
inputRef.current?.focus();
|
||||
}
|
||||
}, []);
|
||||
// React.useEffect(() => {
|
||||
// if (props.autoFocus) {
|
||||
// inputRef.current?.focus();
|
||||
// }
|
||||
// }, []);
|
||||
|
||||
return (
|
||||
<Row
|
||||
|
||||
@@ -84,7 +84,7 @@ export default function AIPromptBlock({
|
||||
}
|
||||
}}
|
||||
componentRef={promptInputRef}
|
||||
autoFocus
|
||||
// autoFocus
|
||||
/>
|
||||
<AIPromptActionSection
|
||||
loading={loading}
|
||||
|
||||
@@ -100,7 +100,7 @@ export default function FileUpload({
|
||||
|
||||
const [fileDraggedOver, setFileDraggedOver] = React.useState(false);
|
||||
const inputRef = React.useRef<HTMLInputElement>(null);
|
||||
const tempFileURLRef = React.useRef<string>(null);
|
||||
const tempFileURLRef = React.useRef<string>("");
|
||||
|
||||
React.useEffect(() => {
|
||||
if (existingFileUrl) {
|
||||
|
||||
Reference in New Issue
Block a user