feat(menu): 支持子菜单自管滚动区域和焦点 - #24
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
模型列表已有虚拟滚动容器,嵌入级联子菜单时再次包裹滚动区域会产生重复滚动框。新增默认开启的
scrollable属性,允许调用方自管滚动区域,同时保留子菜单对齐和进入动画。MenuScrollArea 尊重调用方传入的 tabindex,使隐藏搜索框后的列表仍可通过键盘聚焦。验证:改动文件 ESLint 通过;在 Memoh 集成环境完成模型列表打开、键盘选择和子菜单向右展开的浏览器自检。默认调用仍沿用原滚动容器。
人工确认:用户在本地预览迭代后确认当前效果可接受(“还行,提交”)。该确认覆盖本次菜单视觉与交互验收;未验证的边界场景仍以文中说明为准。