My iOS users report sometimes that file browse do not show. Super strange, I don't think there's anything wrong with the code, it's probably more an iOS bug. But maybe you can count more on showPicker() instead of click(), I don't know... In iOS 16 it is supported.
if ('showPicker' in HTMLInputElement.prototype) {
input.showPicker();
} else {
input.click();
}
My iOS users report sometimes that file browse do not show. Super strange, I don't think there's anything wrong with the code, it's probably more an iOS bug. But maybe you can count more on showPicker() instead of click(), I don't know... In iOS 16 it is supported.
Ref: https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/showPicker