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

OrganizationChart: "value" property improperly defined as "OrganizationChartNode[]" in OrganizationChartProps #2069

Closed
titou10titou10 opened this issue Feb 1, 2022 · 0 comments · Fixed by #2083
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@titou10titou10
Copy link
Contributor

titou10titou10 commented Feb 1, 2022

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting

OrganizationChart component defines a"value"attribute defined in"organizationchart/OrganizationChart.d.ts" as an array ofOrganizationChartNode:

export interface OrganizationChartProps {
    /**
     * Value of the component.
     */
    value?: OrganizationChartNode[];
    {...}

But the component does not accept arrays, only a singleOrganizationChartNode, confirmed by the code in the documentation and failure of the component when passing an array as value

Current behavior
Compiling for production an application using theOrganizationChart when using typescript fails when passing a singleOrganizationChartNodeto the"value"property

Expected behavior
Compiling for production an application using theOrganizationChart when using typescript succeeds when passing a singleOrganizationChartNodeto the"value"property

Please tell us about your environment:

  • Microsoft Visual Studio Code v1.63.2 + volar v0.31.1
  • Vue version: v3.2.25
  • PrimeVue version: v3.11.0
  • Vite v2.7.2
  • TypeScript v4.5.5
@tugcekucukoglu tugcekucukoglu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Feb 1, 2022
@tugcekucukoglu tugcekucukoglu added this to the 3.11.2 milestone Feb 11, 2022
@tugcekucukoglu tugcekucukoglu self-assigned this Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants