activist-org / activist

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

TypeError: Cannot read properties of undefined (reading 'isOpen') in MediaImageCarousel.vue #980

Open mattburnett-repo opened 1 month ago

mattburnett-repo commented 1 month ago

Terms

Behavior

A quick summary:

Steps to reproduce:

Notes (why this might be happening, things tried that didn't work, etc):

So there are two issues: 1 The closeModal() method is triggered every time a user navigates around the app, whether there is an open modal or not. 2 There is duplicate code in some components that handles modal closing outside of ModalBase.vue. ModalBase should be the only place where modals are closed.

I suggest that the primary issue (issue 1) be resolved first and then be sent through the PR process. Once the PR is closed, the secondary issue (issue 2) should be addressed.

I'm happy to take this on. Let me know if this approach is appropriate, or if another approach is preferred.

andrewtavis commented 1 month ago

Thanks for mapping this out, @mattburnett-repo! @momanyisamuel and I were seeing much of this earlier today. By all means feel free to take this on :)

andrewtavis commented 1 month ago

Let's definitely handle issue 1 first and move to the second as you sugguested!

mattburnett-repo commented 1 month ago

Created local branch 980.2, in order to address the secondary issue in this bug report (possible duplicate modal-handling code in some of the codebase). Once this secondary issue is addressed, another PR for this bug report will arrive.

andrewtavis commented 1 month ago

Thanks @mattburnett-repo!