Users were losing data while completing surveys, when the survey modals
would close due to the user clicking outside the modal.
The survey modals now don't close when the user clicks outside the
modal, and must instead be closed by submitting or clicking the 'x'
button.
Connects #535
Demo
Notes
This change was also applied to the monthly survey form because the monthly survey is also impacted by the change to the Popup component that prevents closing by clicking outside the box; however, the monthly surveys are currently inaccessible for testing as they aren't being used. The applicable code and functionality are identical to the November and April forms, however, so there shouldn't be any future issues.
Testing Instructions
Check out this branch
Run ./scripts/beekeepers.sh start
Enter a November survey.
Attempt to close by clicking outside the modal; it should not close.
Attempt to close by clicking the 'x' button; it should close.
Reopen, and attempt to close by submitting; it should close.
Enter an April survey.
Attempt to close by clicking outside the modal; it should not close.
Attempt to close by clicking the 'x' button; it should close.
Reopen, and attempt to close by submitting; it should close.
Overview
Users were losing data while completing surveys, when the survey modals would close due to the user clicking outside the modal.
The survey modals now don't close when the user clicks outside the modal, and must instead be closed by submitting or clicking the 'x' button.
Connects #535
Demo
Notes
This change was also applied to the monthly survey form because the monthly survey is also impacted by the change to the Popup component that prevents closing by clicking outside the box; however, the monthly surveys are currently inaccessible for testing as they aren't being used. The applicable code and functionality are identical to the November and April forms, however, so there shouldn't be any future issues.
Testing Instructions