Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File options dropdown remains open when clicking other files #3332

Closed
kammeows opened this issue Feb 5, 2025 · 1 comment · Fixed by #3333
Closed

File options dropdown remains open when clicking other files #3332

kammeows opened this issue Feb 5, 2025 · 1 comment · Fixed by #3333
Labels

Comments

@kammeows
Copy link
Contributor

kammeows commented Feb 5, 2025

p5.js version

1.11.1

What is your operating system?

Windows

Web browser and version

132.0.6834.160

Actual Behavior

When a file’s dropdown menu (Rename/Delete options) is opened, clicking outside on another file or anywhere else does not close the dropdown. The down arrow icon has to be clicked again and that is the only way to hide the dropdown menu.

Image
Here, even though I've clicked elsewhere, the dropdown menu remains open.

Image
This can lead to multiple dropdowns staying open, creating a cluttered UI. The user will have to click on every single down arrow to close the file, which is unnecessary and time consuming.

Expected Behavior

The dropdown should automatically close when the user clicks anywhere else outside the dropdown or opens another file’s dropdown.

Steps to reproduce

Steps:

  1. Open the sidebar
  2. Click on the down arrow icon
  3. Click on another down arrow icon or click elsewhere
@kammeows kammeows added the Bug label Feb 5, 2025
Copy link

welcome bot commented Feb 5, 2025

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

kammeows added a commit to kammeows/p5.js-web-editor that referenced this issue Feb 5, 2025
raclim added a commit that referenced this issue Feb 7, 2025
Fix: Close file options drowndown when clicking outside (Issue #3332)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant