Closed atmar closed 7 years ago
Hey @atmar. After closed
event is fired - modal is destroyed and i assume $refs should be cleaned.
From vue docs:
$refs is also non-reactive, therefore you should not attempt to use it in
templates for data-binding.
Hi, thanks for the fast response. I still don't know why it suddenly doesn't work anymore, but I found somewhat of a fix to it. It suddenly came to me right after writing this post and realising it's my component that gets destroyed aswell and not only the modal. I've wrapped Authmodal.vue like this now:
<template>
<div>
<modal></modal>
<div>
</template>
By adding the div, the component survives the modal being destroyed.
Hello,
After the 'closed' event is fired, the $ref changes to 'undefined', giving me the following error :
I didn't have this while developing this feature, it's only now, a few weeks later that I've noticed. I tried previous versions of the files that I know worked in the past, but no success. The only difference is that I did an 'npm update' to update everything. I've tried previous versions of this plugin but the result was the same. Currently trying different vuejs versions. I've been searching for hours but I don't know what changed that broke it. (Also I'm using Nuxt for ssr)
HeaderBar.vue:
Authmodal.vue