bcgov / bcparks-ar-admin

BCParks Attendance and Revenue Admin
Apache License 2.0
4 stars 11 forks source link

A&R - Discard modal displayed even when no change made #403

Open kgorana opened 1 year ago

kgorana commented 1 year ago

Description

How to replicate:

Expected Behavior:

Because we haven’t made any change, we should just be redirected to the previous screen

Issue:

Even though we haven’t made any change in the form, the “Discard” modal is displayed, which is contradicting the content of the modal since it says “You have unsaved changes” and that’s not true in this use case See recording

Another scenario: Try to navigate away from the page using other controls (e.g., breadcrumb, left hand nav). Warning should be shown if I make changes and try to navigate away, no matter how I do it.

Environment

TEST : A&R Admin

LindsayMacfarlane commented 3 days ago

@Dianadec - wrong repo? Should be with A&R?