Skip to content

Dropdown content is rendered 11 times when opened #6636

@Leroy119

Description

@Leroy119
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.20

Environment

Vue 3.2.45

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  • Check the codesandbox
  • Open the console
  • Click the "Click me" button

What is expected?

The content should only render a single time.

What is actually happening?

The content is rendered 11 times.


I ran into this bug because rendering a bigger list eg 100 items takes a performance his and freezes the UI for a second.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tangjinzhou@Leroy119

        Issue actions

          Dropdown content is rendered 11 times when opened · Issue #6636 · vueComponent/ant-design-vue