|
|
|
@ -49,7 +49,9 @@ export const fileOpen = <M extends boolean | undefined = false>(opts: {
|
|
|
|
|
const scheduleRejection = debounce(reject, INPUT_CHANGE_INTERVAL_MS);
|
|
|
|
|
|
|
|
|
|
const checkForFile = () => {
|
|
|
|
|
if (isResolved) return;
|
|
|
|
|
if (isResolved) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (input.files?.length) {
|
|
|
|
|
isResolved = true;
|
|
|
|
|