Skip to content

Transfer component header dropdown box reports an error: "Warning: MenuItem should not leave undefined key." #32574

@fidelyiu

Description

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. Open your browser console.

  2. Mouse over the Select All dropdown box in the header of the Transfer component.

  3. and this error will be reported.

What is expected?

I don't want to see this error.

It would be nice if this error could be avoided by overriding the dropdown box, but the Transfer component does not have the ability to override the dropdown box.

What is actually happening?

The dropdown box in the header of the Transfer component reports an error when the mouse is moved up.

Environment Info
antd 4.16.13
React react
System windows
Browser Chrome

I believe Transfer components should all have this problem, this is just a random case copied from the official website.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions