Description
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 singleOrganizationChartNode
to the"value"
property
Expected behavior
Compiling for production an application using theOrganizationChart
when using typescript succeeds when passing a singleOrganizationChartNode
to 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