dpc-sdp / ripple

Ripple is the frontend framework for Single Digital Presence, delivered using Nuxt and Vue.js
Apache License 2.0
61 stars 37 forks source link

[SDPAP-7784] reset forms conditional state after clearing the form #1301

Closed lambry closed 1 year ago

lambry commented 1 year ago

Motivation and Context

JIRA issue: https://digital-vic.atlassian.net/browse/SDPAP-7784

Changed

Fields were being cleared when the clear form button is pressed but the actually form state isn't returned to it's initial state, i.e. with conditional logic applied.

Let me know if anyone's got some suggestions to avoid using this.$refs.vfg.$forceUpdate().

Screenshots

Before

clearform-before

After

clearform-after

Types of changes

Checklist