activist-org / activist

An open-source activism platform
https://activist.org
GNU Affero General Public License v3.0
209 stars 173 forks source link

Modals still open and can't be closed if we navigate away while they're open and then back #923

Open andrewtavis opened 2 days ago

andrewtavis commented 2 days ago

Terms

Behavior

Something that came up during the recent testing of the command palette was the realization that when we navigate away while they're open, then if we come back they can't be closed (thus breaking the entire UI). Steps to reproduce this are:

After the above steps, the command palette will still be open, and further all functionality to close it will also not function. The X to close won't work, and clicking outside the modal will also not close it.

Would be great if we look into this!

andrewtavis commented 2 days ago

Hey @mattburnett-repo 👋 Would this be something you'd be interested in looking into?

andrewtavis commented 2 days ago

Let me know if more explanation on how to reproduce would be helpful! :)

mattburnett-repo commented 2 days ago

@andrewtavis I'll get on this. Go ahead and assign it to me.

Is the behavior in this issue unique to command palette, or does it happen with other modals?

andrewtavis commented 2 days ago

Hey @mattburnett-repo 👋 Thanks for jumping in to help here! My assumption would be that this is for all modals given they're all using the same store, but I didn't test others :)