Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] Uploader的chooseFile使用模拟点击,导致maxCount为1时无法触发chooseFile #12642

Open
ducheng1 opened this issue Feb 22, 2024 · 0 comments

Comments

@ducheng1
Copy link

重现链接

https://codesandbox.io/p/devbox/vant-4-issue-template-forked-fx2fcf?workspaceId=c0a28bf1-02ea-4892-a484-d3515e77a2d4

Vant 版本

4.0.4

描述一下你遇到的问题。

Uploader的chooseFile使用模拟点击,导致maxCount为1时无法触发chooseFile

重现步骤

  1. 设置VanUploader的maxCount为1
  2. 先上传一张图片,然后调用uploaderRef.value!.chooseFile()
  3. 问题复现

设备/浏览器

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant