react-component / react-component/dropdown

Reset dropdown selected menu item after it is closed

Open
#229 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
181
Forks
112
Avg merge
12h 52m
Merged PRs (30d)
2

Description

Once selected/clicked menu item is always selected even after the dropdown is closed.
Can we please a have prop to reset the previously selected menu item once the dropdown is closed.

Can be able to repro in any of the sample pasting one below for reference.
Example http://react-component.github.io/dropdown/examples/dropdown-menu-width.html

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in the linked dropdown-menu-width.html sample and trace the dropdown component entry point it uses. Done means the selected menu item no longer remains selected after the dropdown closes, with the requested reset behavior exposed as a prop.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.