When I use a
v-if="toolbarStatus" in the first DIV element, it does shows the button, but it does not shows the Dropdown3 elements. This only happens when I'm from route "A" going to end route "B" which loads the Toolbar. Does this have to do with router-link which I'm using in route A to get to route B?
If I just directly go to the end route or refresh it, it works perfectly.
<div class="card-toolbar" v-if="toolbarStatus">
class="btn btn-sm btn-icon btn-color-primary btn-active-light-primary"
<span class="svg-icon svg-icon-2">
I just checked it deeper. It look like the click function is not being detected.
v-if will hide elements with all child elements. If your first div element is hidden when your button and dropdown components will be hidden as well.
Could you please specify what you want to display on your page?
Lauris, the button is shown as the value of
toolbarStatus is true. It renders. But if I click on the element (button). It does not show the dropdown.
Sorry for the misunderstanding.
You can try to reinitialize MenuComponent in your vue component.
A great thanks for that tip. It has just saved ma day.
Please can you give more explanations about why we have to do that so it works??