When unmounted, resetting field

This commit is contained in:
brydon1 2023-06-30 13:48:19 -04:00
parent bd6d6397ed
commit 2485e2ac73

View file

@ -76,6 +76,7 @@
value: inputValue,
handleChange,
errors,
resetField
} = useField(props.groupName, props.validationRules,
{
type: inputType,
@ -84,8 +85,12 @@
return {
handleChange,
errors,
resetField
};
},
unmounted(){
this.resetField();
}
};
</script>