AnalyzePlatypus / vue-unsaved-changes-dialog

Beautiful unsaved changes dialog, inspired by a component from the Squarespace admin
13 stars 3 forks source link

Subtitle message is not showing up #1

Open sbardewa opened 4 years ago

sbardewa commented 4 years ago

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: image

AnalyzePlatypus commented 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")