Closed jerichosiahaya closed 2 years ago
Okay, nevermind, I solved. I use Vue 2, so the collapse event would be @toggle-collapse
not @update:collapsed
. Maybe a changelog would be a great idea so people (like me 😜) wouldn't confuse again if there's sort of change between the version.
I tried to use
@update:collapsed
to read the collapsed state and use it to trigger a function like this@update:collapsed="onToggleCollapse"
, but it doesn't read any the collapsed state at all. Tried to use it as you wrote on the documentation and add a console.log to see if it's already change but still doesn't work.Any idea why is this happen? I use Vue 2 with Nuxt.js