react-component / react-component/trigger
Hide context menu by adding scrolling event on root component instead of document.
未关闭
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 391
- 派生
- 245
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi,
Is it possible we can hide context menu by adding scrolling event on root component or his parent instead of only document?
Similar with contextMenuOutsideHandler1, can it handle not only document but also dom node we passed?
Thank you.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位根组件的滚动行为以及现有的基于 document 的上下文菜单处理,包括 contextMenuOutsideHandler1。确定传入的 DOM 节点应如何接收等效处理,然后验证滚动根组件或其父元素时,上下文菜单会被隐藏,而不是仅依赖 document。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react, typescript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100