project-icp / bee-pollinator-app

The web application front end for the ICP Pollinator Decision Support Tool 🐝
Apache License 2.0
6 stars 1 forks source link

Fixes survey modals closing unexpectedly #572

Closed TaiWilkin closed 4 years ago

TaiWilkin commented 4 years ago

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

Screen Shot 2020-02-21 at 9 47 10 AM

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

rajadain commented 4 years ago

Taking a quick look now