Open sbardewa opened 4 years ago
This seems to be working OK in all of my projects. Can you provide an example project or jsfiddle?
in your example code,:title=this.message
is missing quotes. Perhaps that's causing the issue?
(Correct syntax is :title="message"
)
In "vue-unsaved-changes-dialog: "^1.3.0", the subtitle field in the dialog box is empty despite the subtitle prop is non-empty with a valid message. With the following props:
<UnsavedChangesDialog :title=this.message :subtitle="['You have unsaved changes', 'Would you like to save or discard them?']" :show="shouldShowDialog" @cancel="closePopup" @discard="discard" @save="save" />
The output is as follows: