[Vuejs]-Vuejs component click event not working

0👍

Hey I’ve not used vuikit before but from their documents they show this is how to close a modal. I would also remove that v-if=”config” as that might be confusing Vue

<template>
    <div class="uk-scope">
        <vk-modal :show.sync="isShow">
          <vk-modal-close @click="isShow = false" large></vk-modal-close>
          <vk-notification :messages.sync="messages"></vk-notification>
            <app-breadcrumb :current-view="currentView" />
            <!-- render the currently active component/page here -->
            <component v-bind:is="currentView"/>
        </vk-modal>
    </div>
</template>

0👍

Have you tried using @click.native="someFunction" note that this does not have ().

Leave a comment