Filings UI: The "Unsaved Changes" pop-up appears even when the user resets the filing to its original state.
- Dominant language
- JavaScript
- Stars
- 23
- Forks
- 62
- Avg merge
- 24m
- Merged PRs (30d)
- 1
Description
**Describe the bug in the current situation**
When a user makes changes to filings, such as COD/COA, and then reverts those changes, leaving the filing in its original state, clicking "Cancel" still triggers a pop-up warning that unsaved changes will be lost. This behavior is unexpected since the filing has been restored to its original state.
Steps to reproduce the behavior:
1. Go to 'https://test.business.bcregistry.gov.bc.ca/BC1156192/'
2. Start a COA/COD filing.
3. Make some changes and revert those.
4. Now click on Cancel.
5. Observe that the Unsaved Changes Pop-Up shows up.
**Screenshots/ Visual Reference/ Source**
[Private Zenhub Video](https://api.zenhub.com/attachedFiles/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBeG52Qnc9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--78adf2422715b4c9c73448beba623ba04be18a40/Screen%20Recording%202024-11-27%20at%2012.14.15%20PM.mov)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.