Skip to content

Attachments 组件设置 multiple 后选中多少文件 onChange 就会触发多少次 #1065

@myesn

Description

@myesn

重现步骤

<Attachments
    beforeUpload={() => false}
    multiple
    items={items}
    onChange={({ fileList }) => {
      setItems(fileList);
    }}
/>

当前行为

Attachments 设置 multiple 后选中多少文件 onChange 就会执行多少次

预期行为

一次选中多个文件,应当只触发一次 onChange 事件

上下文

No response

版本

^1.5.0

您在哪些浏览器上遇到了这个问题?

Microsoft Edge

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions