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

Menubar templating error #1526

Closed
webigorkiev opened this issue Sep 8, 2021 · 1 comment
Closed

Menubar templating error #1526

webigorkiev opened this issue Sep 8, 2021 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@webigorkiev
Copy link

webigorkiev commented Sep 8, 2021

Version: 3.7.1

Received a warning when used with the USSR:
[Vue warn]: Invalid prop: type check failed for prop "template". Expected Object, got Function

It appears only if you use the slot:

<Menubar :model="items">

    <template #item="{item}">

        <a :href="item.url">{{item.label}}</a>

    </template>

</Menubar>
@sschellhoff
Copy link

Same problem here. We checked it with the example from the primevue website and with different primevue versions. We use 3.6.0 in our project but i tested it with the newest version (3.7.1 at this moment) too.
THe project uses vue 3 and typescript but i think that shouldn't matter.

@tugcekucukoglu tugcekucukoglu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Oct 25, 2021
@tugcekucukoglu tugcekucukoglu added this to the 3.8.2 milestone Oct 25, 2021
@tugcekucukoglu tugcekucukoglu self-assigned this Oct 25, 2021
@tugcekucukoglu tugcekucukoglu changed the title Menubar warn in SSR Menubar templating error Oct 25, 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
Projects
None yet
Development

No branches or pull requests

3 participants