vuejs-dialog: Dialog never enter the confirm method
Hi,
We’re having issues with your plugin. We’re using it with the <script> include and, following the documentation, we declare
window.Vue.use(VuejsDialog.default);
Here is our code
this.$dialog.confirm('Confirm delete', {
loader: true,
okText: 'Yes',
cancelText: 'No'
})
.then(function (dialog) {
console.log('confirm');
dialog.close();
});
The code never enters the then function and it throws a message in the console :
Possible Unhandled Promise Rejection: undefined
We tried without the loader, same error.
Thanks 😃
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 20 (10 by maintainers)
@Godofbrowser Got it, had to go the v-confirm way to get it working.
Got the following errors:
have already tried your above syntax as well.l
If I do a delete from the firebase database, the delete goes through but the dialog box won’t close and the buttons don’t work, I’ll have to do a page refresh to get rid of it. If I do a local splice (the commented line) it worked fine. Any ideas?
I just did a quick test and can’t seem to reproduce the issue.