subMenuCloseDelay and subMenuOpenDelay props are missing from Menu's type definitions #8976
Labels
Comments
@afc163 Actually the problem is not about missing types, but the source code of the Menu component is missing those props that are present in the documentation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
3.1.3
Environment
N/A
Reproduction link
https://github.com/ant-design/ant-design/blob/master/components/menu/index.tsx#L29
Steps to reproduce
Using TypeScript, add a Menu component with subMenuCloseDelay and/or subMenuOpenDelay props. The code cannot be compiled because the type definitions do not include the above props.
What is expected?
The Menu component should accept the subMenuCloseDelay and subMenuOpenDelay props when using TypeScript
What is actually happening?
The type definitions for the Menu component, do not include the subMenuCloseDelay and subMenuOpenDelay props even though they are listed in the documentation.
The text was updated successfully, but these errors were encountered: