su-fit-vut / kachna-online

Students' Club U Kachničky: Member's portal
MIT License
5 stars 5 forks source link

Event detail opened from expanded day view does not close by clicking on a different detail. #139

Closed ghost closed 6 months ago

ghost commented 8 months ago

Steps to replicate

  1. Zoom out of the kachna online page enough, so that the "+x další" button appers on some days.
    image
  2. Expand the day by clicking on the "+x další" button.
  3. Open the detail of an event.
  4. Open the detail of an event from the same day again.

Expected behaviour

The old event preview should disappear upon clinking anywhere but on the event detail modal.

Actual behaviour

The new events detail will open over the old one, this can be repeated ad libitum, as show in the picture below.

image

azooz59T commented 8 months ago

Can I take this and can I confirm my understanding you want the old event preview to disappear when the a new one is clicked ?

Kiznoh commented 8 months ago

Sure, feel free to take this.

The main problem is that the expanded day is on top of the backgroud of the modal with event/state detail. That means you can open multiple modals instead of closing the open one and just then opening another one.