I was creating a navigation bar and had similar requirements. I want the popup menu to be closed when clicked anywhere accept the menu or its children.
This can be done by using event modifiers. Fore reference see this docs
Specifically, we can use stop
event modifier.
<div id="largeArea" v-on:click="do_X">
…
Top comments (0)