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

Dropdown and MultiSelect: TS2322 compilcation error #2845

Closed
sid-6581 opened this issue Aug 15, 2022 · 1 comment
Closed

Dropdown and MultiSelect: TS2322 compilcation error #2845

sid-6581 opened this issue Aug 15, 2022 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@sid-6581
Copy link
Contributor

Describe the bug

In PrimeVue 3.16, DropdownProps and MultiSelectProps were changed to extend HTMLDivElement. This causes TS2322 compilation errors:

error TS2322: Type '{ id: string; modelValue: string | null | undefined; options: string[] | undefined; filter: true; }' is not assignable to type 'IntrinsicAttributes & DropdownProps & VNodeProps & AllowedComponentProps & ComponentCustomProps'.
  Type '{ id: string; modelValue: string | null | undefined; options: string[] | undefined; filter: true; }' is missing the following properties from type 'DropdownProps': align, addEventListener, removeEventListener, accessKey, and 276 more.

Reproducer

No response

PrimeVue version

3.16.0

Vue version

3.x

Language

TypeScript

Build / Runtime

TypeScript

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@sid-6581 sid-6581 added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 15, 2022
@mertsincan mertsincan self-assigned this Aug 15, 2022
@jzs11
Copy link

jzs11 commented Aug 15, 2022

Temp solution is to open the d.ts file to remove the HTMLDivElement
image

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

No branches or pull requests

3 participants