Vue3 Menu cant handle @change #1062
Unanswered
michelwaechter
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello friends.
Got a question to your Menu component.
I used to work with your component seen here:
https://tailwindui.com/preview#component-e799517f86cc2fc79bf0eebb45c16eea
No i wanted to start a function on change of Sort-Item. Handled like this:
`<MenuItem
v-for="option in sortOptions"
:key="option.name"
In this function I just placed an console.log.
So I thought the output would be:
Click on "Standard"
"click: Standard"
In reality:
Click on "Standard"
"click: Standard"
"click: population"
"click: name"
"click: date"
Every item is "fired". How to solve?
Beta Was this translation helpful? Give feedback.
All reactions