yariksav / vuetify-dialog

Easy dialogs in Vuetify.js framework
MIT License
195 stars 48 forks source link

Dialog with password and binding #131

Open cccaballero opened 3 years ago

cccaballero commented 3 years ago

I am trying to use a dialog with password field as the examples, but I need to bind the password value (using v-model) for validation and other proposes. Is this possible?

I have tried to use it in this way, but is not working:

textField: {
  class: "app-field",
  outlined: true,
  type: "password"
  'v-model': this.$v.passwordConfirmForm.currentPassword.$model,
},
scp-nm commented 2 years ago

Have you tried value? This is then passed to editedValue which is then set to the v-model on the v-text-field component.

https://github.com/yariksav/vuetify-dialog/blob/8d493b661413beb33d831ac23d409922dacecac0/src/components/Prompt.vue#L12