I'm using the vue-select plugin and dynamically attached <li>
element to the options. However, when ever I clicked on my new <li>
element, the dropdown close itself.
My desire results, when my <li>
element is clicked, the dropdown menu stay open.
I added a link inside my <li>
element and bind to an onclick event. However, when I clicked the link my component method is not fire. I think there's a event.preventDefault() is used in the parent dropdown menu.
How can I get around or bypass the parent preventDefault() and fire up my method when my <li>
element link is clicked?
<li><a v-on:click="moreInfo"> Learn More </a></li>
My component method
methods: {
moreInfo: function (event) {
console.log('reach this part.');
}
}