MyHomeworkSpace / client

The MyHomeworkSpace client.
MIT License
4 stars 4 forks source link

Be smarter about closing modals #111

Open thatoddmailbox opened 5 years ago

thatoddmailbox commented 5 years ago

Right now we have it so that when you click on the backdrop of a model, it closes. This is good and makes sense most of the time; however, one scenario where this can be annoying is if you're adding/editing homework or a calendar event and you lose your data. This becomes a bigger problem if you have MyHomeworkSpace in a different window and click on that window to focus it, but that click also gets sent to the webpage and you lose what you were doing.

We probably want some way for modals to have an exit prompt, but we also shouldn't do this on every modal, since there's some modals that won't need it. If we really wanted to be smart, we could only have it prompt if you've actually entered/edited data.