Reset dropdown selected menu item after it is closed
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
首先在链接的 dropdown-menu-width.html 示例中复现该行为,并跟踪它使用的 dropdown 组件入口点。完成标准是:dropdown 关闭后,已选中的菜单项不再保持选中状态,并且将所请求的重置行为作为 prop 暴露出来。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- TypeScript
- 星标
- 181
- 派生
- 112
- 平均合并
- 28 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
react-component/dropdown 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 45/100
react-component/dropdown#245 ·
-
难度 3/5 1-2 天 新手友好度 35/100
react-component/dropdown#242 ·
-
难度 5/5 一周以上 新手友好度 15/100
react-component/dropdown#241 ·
-
难度 5/5 一周以上 新手友好度 20/100
react-component/dropdown#231 ·
-
难度 3/5 1-2 天 新手友好度 35/100
react-component/dropdown#216 · 2 条评论 ·
查看 react-component/dropdown 的全部 Issue
相似的 Issue
-
area:tui enhancement platform:macos
难度 2/5 1-3 小时 新手友好度 66/100
anthropics/claude-code#101490 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
netlify/netlify-mcp#75 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
atlassian-labs/compiled#1960 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
pnp/cli-microsoft365#7639 ·
维护者通常 2 天内回复
-
nextjs-tracking
难度 2/5 1-3 小时 新手友好度 74/100
cloudflare/vinext#3887 ·
维护者通常 1 天内回复