morkro / vue-a11y-dialog

Vue.js component for a11y-dialog

Home Page:https://www.npmjs.com/package/vue-a11y-dialog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vue i18n functions not available inside dialog

LeBenLeBen opened this issue · comments

I use this plugin to display a form that use various calls to Vue i18n $t function. It systematically throws the following error:

TypeError: i18n is undefined

If I move my code outside of the Dialog, it works just fine. I've found related issues here and there about Vue i18n and Portal Vue mounting-portal component (LinusBorg/portal-vue#199, kazupon/vue-i18n#184 (comment)) so I decided to try adapting it and see if it works.

I was surprised to see that just by copying your source A11yDialog component within my project solved the issue. Could it be something in the compiled version that cause this?

I don't know if you have an idea about what it could be? In any case providing the source component into the npm package would actually be enough for me and avoid having to copy it manually within my project.

Thanks for raising this @LeBenLeBen! Let me investigate the issue and report back asap.