We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello.
I get error: TypeError: Cannot read properties of undefined (reading 'show')
import VModal from 'vue-js-modal'; Vue.use(VModal, { dialog: true, componentName: "foo-modal" });
this.$modal.show('dialog', { title: 'В корзине!', text: 'Товар добавлен в корзину покупок!', buttons: [ { title: '<i class="fas fa-thumbs-up"></i> Продолжить покупки', handler: () => { this.$modal.hide('dialog') } }, { title: '<i class="fas fa-shopping-cart"></i> Перейти в корзину', handler: () => { window.location.href = response.data.cart.cartUrl; } }, // { // title: 'Repost', // handler: () => { // alert('Repost action') // } // } ] })
I have checked stackoverflow for solutions and 100% sure that this issue is not not related to my code.
The text was updated successfully, but these errors were encountered:
@vesnindev Have you any solution for this?
Sorry, something went wrong.
@vesnindevУ вас есть какое-нибудь решение для этого?
I use sweetalert2
No branches or pull requests
Problem:
Hello.
I get error: TypeError: Cannot read properties of undefined (reading 'show')
Version:
Example & screenshots:
import VModal from 'vue-js-modal'; Vue.use(VModal, { dialog: true, componentName: "foo-modal" });
this.$modal.show('dialog', { title: 'В корзине!', text: 'Товар добавлен в корзину покупок!', buttons: [ { title: '<i class="fas fa-thumbs-up"></i> Продолжить покупки', handler: () => { this.$modal.hide('dialog') } }, { title: '<i class="fas fa-shopping-cart"></i> Перейти в корзину', handler: () => { window.location.href = response.data.cart.cartUrl; } }, // { // title: 'Repost', // handler: () => { // alert('Repost action') // } // } ] })
The text was updated successfully, but these errors were encountered: