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: add function type to optionLabel #1711

Closed
wants to merge 1 commit into from
Closed

Dropdown: add function type to optionLabel #1711

wants to merge 1 commit into from

Conversation

fardolieri
Copy link

Issue here
I'd like to add the function type to the optionLabel in the Dropdown to get rid of the Volar error when using a function.

    <Dropdown
      :options="options"
      :optionLabel="(option) => option.foo" // <--- Type '(option: any) => any' is not assignable to type 'string'.ts(2322)
    ></Dropdown>

@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Nov 16, 2021
@cagataycivici cagataycivici added this to the 3.9.0 milestone Nov 16, 2021
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 vue2-portable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants