You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a v-text-field in a v-form. My v-text-field is inside a parent component name input, this input have a props to set the value of my v-text-field. I my case i also have a default value at the input level.
My probleme comes when i perform a clear action. When i clear the field i want my default value to be display and it works most of the time. But when in my field i have already my default value as value for my field, the value of the v-text-field is nicely cleared but because my new value that i want to put in the field is the same as that the one i just cleared the component is not reloaded.
Maybe theses images will be more relevant.
here is what i have when i mount my component :
I can change the value :
and when i clear it the default value is comming back :
but if i clear when the value is the default, the v-text-field is empty :
the props i have in the input component :
the props i have in the vuetify ones :
so if you have any tricks who could do the job it would make me very happy :D.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello
My probleme is simple, but tricky to resolve.
I have a v-text-field in a v-form. My v-text-field is inside a parent component name input, this input have a props to set the value of my v-text-field. I my case i also have a default value at the input level.
My probleme comes when i perform a clear action. When i clear the field i want my default value to be display and it works most of the time. But when in my field i have already my default value as value for my field, the value of the v-text-field is nicely cleared but because my new value that i want to put in the field is the same as that the one i just cleared the component is not reloaded.
Maybe theses images will be more relevant.
here is what i have when i mount my component :
I can change the value :
and when i clear it the default value is comming back :
but if i clear when the value is the default, the v-text-field is empty :
the props i have in the input component :
the props i have in the vuetify ones :
so if you have any tricks who could do the job it would make me very happy :D.
Have a nice day
Beta Was this translation helpful? Give feedback.
All reactions