JosefCevik / JWManagement

GNU Affero General Public License v3.0
57 stars 30 forks source link

Modal overlay not removed after using browser back button #471

Open thorsten-de opened 2 years ago

thorsten-de commented 2 years ago

Describe the bug The modal showing a shift is shown on an overlay, as usual. Closing the modal by the close button or clicking the overlay works fine. But using the browsers back button, you get back to your calendar or shift overview, but the overlay is not removed. After that, the page is unusable, as it captures the events. A full page reload is need to fix it.

To Reproduce Steps to reproduce the behavior:

  1. Open the shift modal
  2. Use browsers back button, or the back (software) button of your phone
  3. Error

Expected behavior The overlay should be removed

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):