Skip to content

[Bug Report] [Component] [upload] el-upload组件的click事件会触发两次 #7283

@polarove

Description

@polarove

Bug Type: Component

Environment

  • Vue Version: 3.2.33
  • Element Plus Version: 2.1.10
  • Browser / OS: Edge / windows 10
  • Build Tool: Vue CLI

Reproduction

Related Component

  • el-upload

Reproduction Link

Element Plus Playground

Steps to reproduce

<script setup lang="ts"> import { ref } from 'vue' import { UploadFilled } from '@element-plus/icons-vue' const upload = () => { console.log(1) } </script>
<el-icon class="el-icon--upload"><upload-filled /></el-icon>

What is Expected?

click事件触发一次

What is actually happening?

click事件触发两次

Additional comments

(empty)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions