Menu.vue: seperatorClass is not a function #3151
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When adding a separator to a menu, it errors out.
In primevue 3.18.0, it looks like the way a class is added to a menu separator changed. It now calls a computed property
separatorClass
to provide the class value, passing in theitem
.I think the problem is down to the computed property not accepting an argument properly.
As far as I understand it, for a computed property to accept an argument the computed property needs to return a function that then accepts an argument.
Reproducer
https://codesandbox.io/s/white-frog-uoxueu?file=/src/App.vue
PrimeVue version
3.18.0
Vue version
3.x
Language
ALL
Build / Runtime
Vite
Browser(s)
Chrome
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: