Closed anialamo closed 3 years ago
@anialamo Thanks for trying the plugin... Unfortunately, the feature you're requesting doesn't come out of the box.
Reason is because click on vuejs-dialog default buttons resolves the waiting promise (this process can only be done once for every promise). Currently exploring other options for coming versions of vuejs-dialog. Think of vuejs-dialog (current version 1.X and before) as a single responsibility dialog that asks only one question or shows only one info, and then it is dismissed.
A solution that looks more like a hack will be to:
showMyModal:function(hasError = false) {
and then continue to
} else {
// NOW: This dialog CLOSES
// FUTURE: I need this dialog stays OPEN
this.showMyModal(true);
}
That said, if you still want to do it in a more elegant way you may want to look at custom dialogs feature.
Please let me know if you're still having trouble getting it to work 😄
A lot of thanks! This works fine for me!!!
Hi! I use vuejs-dialog and I use on <button @click=showMyModal. I add a input type email and I need to validate it before continuing. How to avoid dialog.confirm always closes?
showMyModal has this code:
And I defined my vuejs-dialog with this code: