Skip to content

File options dropdown remains open when clicking other files #3332

Closed
@kammeows

Description

@kammeows

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugError or unexpected behaviors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions