You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On mobile, the van-uploader component doesn't show the "camera" option when pressed, this started happening after updating the phone OS.
Now when pressing the uploader we can only choose photos from gallery.
Reproduce Steps
Creating a van-uploader with a modelValue, @update:model-value, multiple and before-read props will cause this behaviour on certain phones/OS versions.
Creating a regular <input type="file" /> seems to work as expected, i.e showing 3 options (photo camera, video camera and gallery), even though that's what van-uploader is also using behind the hood.
Device / Browser
Motorola moto g23 / Chrome
The text was updated successfully, but these errors were encountered:
Reproduction Link
https://codesandbox.io/p/sandbox/vant-4-issue-template-forked-zsxlxy
Vant Version
4.9.5
Describe the Bug
On mobile, the van-uploader component doesn't show the "camera" option when pressed, this started happening after updating the phone OS.
Now when pressing the uploader we can only choose photos from gallery.
Reproduce Steps
Creating a
van-uploader
with amodelValue
,@update:model-value
,multiple
andbefore-read
props will cause this behaviour on certain phones/OS versions.Android version: 14
Chrome version: 128.0.6613.127
Probably related to this problem: https://stackoverflow.com/questions/77876374/html-input-type-file-not-working-to-pull-up-camera-for-pixel-android-14-comb
Creating a regular
<input type="file" />
seems to work as expected, i.e showing 3 options (photo camera, video camera and gallery), even though that's whatvan-uploader
is also using behind the hood.Device / Browser
Motorola moto g23 / Chrome
The text was updated successfully, but these errors were encountered: