Godofbrowser/vuejs-dialog

Error in Readme

leon-wolf opened this issue · 0 comments

When using the Prompt example from the documentation you encounter following:

You can set the prompt helptext to whatever you want it will always display the default text.

What fixed it for me is setting the first parametet null like this:

      const message = `Wohin soll Objekt ${id} verschoben werden?`;
      const help = 'Hier die neue Position eintragen:';
      this.$dialog
        .prompt(message, {
          promptHelp: help,
        })
        .then((dialog) => {
          // Triggered when proceed button is clicked
          // Show an alert with the user's input as the message
          this.$dialog.alert(dialog.data || '[empty]');
        })
        .catch(() => {
          // Triggered when dialog is dismissed by user

          console.log('Prompt dismissed');
        });