We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7307175 + 1e9312b commit 712a979Copy full SHA for 712a979
src/app/upload/page.tsx
@@ -38,7 +38,6 @@ const Page = () => {
38
const [year, setYear] = useState("");
39
const [files, setFiles] = useState<File[]>([]);
40
const [inputValue, setInputValue] = useState('')
41
-
42
const [isSubjectCommandOpen, setIsSubjectCommandOpen] = useState(false);
43
const [isUploading, setIsUploading] = useState(false);
44
@@ -129,6 +128,7 @@ const Page = () => {
129
128
130
const handleSubjectSelect = (value: string) => {
131
setSubject(value);
+ setInputValue(value)
132
setIsSubjectCommandOpen(false);
133
};
134
0 commit comments