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 Type Error #2861

Closed
ajon88 opened this issue Aug 17, 2022 · 1 comment
Closed

Dropdown Type Error #2861

ajon88 opened this issue Aug 17, 2022 · 1 comment

Comments

@ajon88
Copy link

ajon88 commented Aug 17, 2022

Describe the bug

  • error TS2322: Type '{ modelValue: any; options: { name: string; code: string; }[]; optionLabel: string; optionValue: string; placeholder: string; }' is not assignable to type 'IntrinsicAttributes & DropdownProps & VNodeProps & AllowedComponentProps & ComponentCustomProps'.
    Type '{ modelValue: any; options: { name: string; code: string; }[]; optionLabel: string; optionValue: string; placeholder: string; }' is missing the following properties from type 'DropdownProps': align, addEventListener, removeEventListener, accessKey, and 277 more.

Reproducer

No response

PrimeVue version

3.16.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

Build with type check

Expected behavior

no Error

@ajon88 ajon88 added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 17, 2022
@mertsincan
Copy link
Member

Duplicate of #2845

@mertsincan mertsincan marked this as a duplicate of #2845 Aug 17, 2022
@tugcekucukoglu tugcekucukoglu removed the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants