bcgov / nr-sustainment-capstone-2024

Apache License 2.0
2 stars 2 forks source link

Fix Next Button behaviour #322

Closed GDamaso closed 3 months ago

GDamaso commented 3 months ago

Describe the Bug

Clicking on the next button moves the form forward no matter the condition.

Expected Behaviour

Clicking the next button closes the current form and opens the next one. If the next button is clicked on a previously filled out form, it only updates the data and closes it's form section, which is different then a forward movement in the forms.

If the user is working on form section 3 and he clicks on the next button on the form section 1, section 3 would close and open section 4.

Actual Behaviour

If the user is working on form section 3 and he clicks on the next button on the form section 1, section 3 is not affected and section 1 closes.

Priority

Determine the priority of this error

I thought of this simple fix randomly and tried it in another branch. Since it worked well, I stashed it to apply in it's correct ticket. Pretty straightforward.