reset query state after file selection in AddFileCombobox
This commit is contained in:
parent
52f1f7034b
commit
3d243045d0
1 changed files with 2 additions and 0 deletions
|
|
@ -55,12 +55,14 @@ export default function AddFileCombobox({
|
|||
setSelectedFiles(files);
|
||||
void onSelect(files.map((file) => file.id));
|
||||
buttonRef.current?.click();
|
||||
setQuery("");
|
||||
}}
|
||||
>
|
||||
{({ open }) => (
|
||||
<div className="relative">
|
||||
<ComboboxButton className="hidden" ref={buttonRef} />
|
||||
<ComboboxInput
|
||||
value={query}
|
||||
ref={inputRef}
|
||||
onClick={() => {
|
||||
if (!open) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue