Skip to content

When using html tags inside Menu it throws errors: React does not recognize the eventKey prop on a DOM element. #407

@Dorious

Description

@Dorious

I get an error while using normal html tags inside <Menu>:
React does not recognize the eventKey prop on a DOM element.....
React does not recognize the warnKey prop on a DOM element.....

Easy reproduce

<Menu>
   <div /> 
</Menu>

Funny but when you use React component it doens't have that problem, this doesn't throw anything:

const Comp = () = <div />

<Menu>
  <Comp />
</Menu>

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions