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

singleLabel slot can not read nested property #1745

Open
DarkMode1426 opened this issue Jan 16, 2024 · 0 comments
Open

singleLabel slot can not read nested property #1745

DarkMode1426 opened this issue Jan 16, 2024 · 0 comments

Comments

@DarkMode1426
Copy link

> <span slot="noResult">Oops! No elements found. Consider changing the search query.</span> <template v-slot:singleLabel="{ option }"> <div>{{ option.machinery.en_name }}</div> </template> <template v-slot:option="{ option }"> <div>{{ option.machinery.en_name }} <br>Batch No: {{ option.batchNo }}</div> </template> </multiselect>

For this code option slot can read the nested property which is en_name, but the singleLabel slot throws an undefined error.

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

1 participant