-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set plugins on a <b-modal> #32
Comments
@mateuswetah As long as you embed |
@mateuswetah Unfortunately, I do not think you can add plugins to a programmatically opened instance of |
Ohh ok, I did not understood that at first! |
Damn that is a serious issue then. I use it a lot for different cases like translation, store, capabilities... If we can think of a way to pass this as parameters would be very important |
Just reminded that Oruga also offers a programmatic launch of Modal: Maybe take a look at their strategy? |
Right, they mimic what |
@wesdevpro @mateuswetah I am addressing the issue in #101. I came up with a simple solution thanks to your information, @mateuswetah! |
Hi @kikuomax! Thank you for all the work being done here. I've been using the programmatic launch of modals and they are working well so far. One thing that is happening is a warning that appears only for programmatic launch, in all of my usages where I pass a custom component. For example: The modal initialization would be something like this: |
@mateuswetah I confirmed that also happened in my project. I opened a new issue: |
@mateuswetah , @kikuomax from my observations, as a workaround an empty events object can be passed to modal, this should remove the warning
|
Hey guys, its me again 🥲
Not a bug this time, but a question.
It took me a while to understand but I see now how the current
BModal
is it's own Vue instance, thus any component or plugin registered to my original Vue with Buefy instance won't work on it. If I use the programmatic instantiation of the modal that is simple, I can obtain the returned object and register on it. But what if I'm just using the component<b-modal>
directly in my template?The text was updated successfully, but these errors were encountered: