Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MenuItem interface missing template property #1823

Closed
bihanviranga opened this issue Feb 19, 2021 · 0 comments
Closed

MenuItem interface missing template property #1823

bihanviranga opened this issue Feb 19, 2021 · 0 comments
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@bihanviranga
Copy link
Contributor

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Current behavior
There is no template property in [MenuItem.d.ts]
(https://github.com/primefaces/primereact/blob/master/src/components/menuitem/MenuItem.d.ts)

For example, if I use the Template example from the site, it gives the error (in VSCode, for instance):

Type '{ label: string; template: (item: any, options: any) => Element; }' is not assignable to type 'MenuItem'.
  Object literal may only specify known properties, and 'template' does not exist in type 'MenuItem'.
  • PrimeReact version:
    6.0.1

  • Language:
    Typescript

@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Feb 22, 2021
@mertsincan mertsincan added this to the 6.1.0 milestone Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants