codu-code / codu

Codú's open-source codebase. A space for coders. Visit our community!
https://codu.co/
Apache License 2.0
138 stars 146 forks source link

Fix always open menu on article sidebar after selection #594

Closed NiallJoeMaher closed 11 months ago

NiallJoeMaher commented 1 year ago

Context

After selecting a option on the sidebar menu or cllicking away the menu should close.

Here's an example of it staying open when you open the report modal:

Screenshot 2023-10-24 at 11 31 53

Make sure this behavior is the same on mobile too! 🦾

Expected Behavior

The menu should close after you choose and option or click away from the menu.

Steps to reproduce

  1. Go to any article
  2. Select the menu on the left
  3. Select "Report article" to view the modal
RajuGangitla commented 1 year ago

@NiallJoeMaher can I work on this issue

NiallJoeMaher commented 1 year ago

Absolutely @RajuGangitla

seog-jun commented 1 year ago

If there's no one working on it, can I have a look?

AnuMessi10 commented 1 year ago

Hey @NiallJoeMaher it's me again, I have already implemented this functionality for production grade web apps, let me know if you can assign this to me. Cheers! 😄

NiallJoeMaher commented 1 year ago

If there's no one working on it, can I have a look?

It's all yours if you want! Let me know if you don't want it anymore so I can assign to @AnuMessi10

seog-jun commented 1 year ago

Then let me give it a shot and if I'm not figuring it out, I'll give it to @AnuMessi10 and you can create PR. Give me some time to do that thanks!

seog-jun commented 12 months ago

Status update: there was progress in closing Popover Panel when clicking Report Article but Modal disappears right away as Popover Panel is closed. Still figuring out how to close Popover only.