Skip to content

The Dropdown Component should handle clicks outside #5348

Description

@ovflowd

Currently, the Dropdown component doesn't handle clicks outside of the Component.

We should create a generic Hook, such as useClickOutside or something that can trigger a callback once or something of the sort.

Then we can incorporate this Hook into the Dropdown Component. This would be useful for closing the Dropdown when clicking outside of the Dropdown.

This work should be done within the major/website-redesign branch.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    website redesignIssue/PR part of the Node.js Website Redesign

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions