From 2485e2ac73032f03a4c89b5b5c58348f71dd99bc Mon Sep 17 00:00:00 2001 From: brydon1 Date: Fri, 30 Jun 2023 13:48:19 -0400 Subject: [PATCH] When unmounted, resetting field --- src/ux-components/radio/radio.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ux-components/radio/radio.vue b/src/ux-components/radio/radio.vue index 1a0d52d7..2c02e245 100644 --- a/src/ux-components/radio/radio.vue +++ b/src/ux-components/radio/radio.vue @@ -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(); + } };