Closed cadilhac closed 1 year ago
You'd have to use v-if
instead
You're right. v-if works. Can you explain why v-show doesn't?
Your v-show
is conflicting with a v-show
we already have on the root div of the component.
v-if
gets around that because it triggers our logic to create/remove the custom control from the map when the component is created/destroyed.
I'll push a fix for this but in general most of our components will require v-if
because vue isn't really rendering anything, just instantiating and removing map objects (the only exception being custom controls, custom markers and info windows). v-show
works by setting display: none
via inline styles on DOM elements which vue controls.
I was trying to show/hide a custom control like this:
This does not work. It works only if v-show is applied to a child node of custom-control. Is it intended?