I'm facing an issue with my vue.js
single file component. I have a button that is supposed to open a modal with a video from zurb foundation
. However, every time I click the button, the page reloads without showing any errors in the console or network section. Below is the code snippet from my home.vue
:
<a data-open="video" class="button warning" href="">WATCH VIDEO</a>
<div id="video" class="reveal" data-reveal>
<div class="lead">
<button class="close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="flex-video">
<iframe width="1280" height="720" :src="url" frameborder="0" allowfullscreen></iframe>
</div>
</div>
Even though the url
is correct and the video is being fetched from YouTube, the page still reloads when the button is clicked.