How to stop the dialog from closing from inside the cancel-method?
<vs-prompt
name="CRMAPIDialog"
:title="diaTitle"
:type="diaType"
:accept-text="accepttext"
:cancel-text="canceltext"
@cancel="cancelDialog"
@accept="acceptDialog"
@close="closeDialog"
:is-valid="diaisValid"
:buttons-hidden="!showButtons"
:active.sync="$parent.showapidia">
/* */
cancelDialog : function(){
console.log('cancelDialog');
},
Have you tried return false ?
You can't prevent dialog from closing,
you have to open it again (it will not be visible to the end user, no animation)
cancelDialog : function(){
this.$parent.showapidia = true
},
perhaps it's a feature that can be added, like an :auto-close="false" attribute or something like that
Oh thx! This makes sense regarding the vue logic. I'll try that.
Most helpful comment
You can't prevent dialog from closing,
you have to open it again (it will not be visible to the end user, no animation)
perhaps it's a feature that can be added, like an
:auto-close="false"attribute or something like that