Skip to content

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

Closed
@titou10titou10

Description

@titou10titou10

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions