0👍
Like Radeanu pointed out, I can just use setTimeout()
. Because $nextTick()
fires after an update in the virtual DOM, not in the real DOM. The code that I use now, that works, looks like this:
setTimeout( () => {
// set it to zero, so that it animates
this.menuStyles = { '--int-menu-height': 0 }
}, 1);
- [Vuejs]-Refreshing a vue component from a vue-router route
- [Vuejs]-Firebase Authentication Vue Router Guard Issue w/ Vuex
Source:stackexchange.com