Problem Description

Close a dropdown when user clicks outside of it.

Input Format

No input.

Output Format

Render a React component.

Constraints

Use a ref for the box and listen to mousedown on document.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next