Increased input change interval to 1000 ms to fix IOS 18 file opening issue

This commit is contained in:
Davide Wietlisbach 2024-12-30 10:05:50 +01:00
parent 798c795405
commit 10d6550a1d

View file

@ -10,7 +10,7 @@ import { debounce } from "../utils";
type FILE_EXTENSION = Exclude<keyof typeof MIME_TYPES, "binary">; type FILE_EXTENSION = Exclude<keyof typeof MIME_TYPES, "binary">;
const INPUT_CHANGE_INTERVAL_MS = 500; const INPUT_CHANGE_INTERVAL_MS = 1000;
export const fileOpen = <M extends boolean | undefined = false>(opts: { export const fileOpen = <M extends boolean | undefined = false>(opts: {
extensions?: FILE_EXTENSION[]; extensions?: FILE_EXTENSION[];