successdav
176
2
Vue

vue-js modal opens the both modals at the same time

Posted 1 month ago by successdav

Hi. I am using a plugin vue-js modal https://github.com/euvl/vue-js-modal

I setup a modal like so

<template>
    <div>
        <a @click="$modal.show('test')">BUTTONS</a>

        <modal name="test" height="auto" draggable=".window-header">
            <div class="window-header">DRAG ME HERE</div>
        </modal>
    </div>
</template>

<script>
    export default {
        
    }
</script>

Now when I place the button to launch the modal two on same page

    <testing></testing>
    <p>another button here</p>
    <testing></testing>

clicking on one of the buttons launch the modal twice, its like the two buttons are firing at thesame time. but I really want only one modal launched

how do I fix this.. thanks..

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.