I am facing an issue with using the input tag in a Vue template. I need to change the type from 'password' to 'text'.
<input type="text" v-model="form.password" />
To achieve this, I have created a watch code to convert text string to asterisks.
watch: {
"form.password": function(val) {
this.form.password = *
}
}
However, as soon as I type one character, it gets changed to '*', triggering the watch function infinitely.
Can anyone suggest a solution to this problem? Thank you for taking the time to read through my query.