fix(menu): menu item reversal not working and offset error#3804
Merged
fix(menu): menu item reversal not working and offset error#3804
Conversation
commit: |
Contributor
16 tasks
16 tasks
uyarn
approved these changes
Jan 20, 2026
Merged
16 tasks
uyarn
added a commit
that referenced
this pull request
Jan 21, 2026
* Revert "fix(menu): fix menu item auto-flip failure (#3744)" This reverts commit 1769464. * fix(menu): menu item reversal not working and offset error * feat: 添加子菜单位置变化时的样式切换逻辑 * chore: 更新子模块 _common * chore: 更新子模块 _common * fix: 修复子菜单样式类名逻辑 * chore: 更新子模块 _common * chore: fix normal head menu re-render * chore: update common * chore: update snapshot * chore: add comment * chore: optimize * chore: fix lint --------- Co-authored-by: Uyarn <uyarnchen@gmail.com>
uyarn
added a commit
that referenced
this pull request
Jan 21, 2026
* fix(table): fix error selection logic in remote pagination (#3801) * fix(table): 修复远程分页场景下全选逻辑错误 * refactor: 简化表格行选中状态计算逻辑 * refactor: 简化表格全选逻辑 * fix: 修复选中行重新计算columns的问题 * fix: 修复远程分页场景下数据同步问题 * fix(menu): fix arrow rotation not working in Safari (#3797) * fix(menu): menu item reversal not working and offset error (#3804) * Revert "fix(menu): fix menu item auto-flip failure (#3744)" This reverts commit 1769464. * fix(menu): menu item reversal not working and offset error * feat: 添加子菜单位置变化时的样式切换逻辑 * chore: 更新子模块 _common * chore: 更新子模块 _common * fix: 修复子菜单样式类名逻辑 * chore: 更新子模块 _common * chore: fix normal head menu re-render * chore: update common * chore: update snapshot * chore: add comment * chore: optimize * chore: fix lint --------- Co-authored-by: Uyarn <uyarnchen@gmail.com> * docs(table): 更新表格 reserveSelectedRowOnPaginate 文档说明 (#3802) * fix(Table): fix last scroll position when page change (#3805) * chore: release 1.14.5 (#3806) * chore: release 1.14.5 * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: release 1.14.5-naruto --------- Co-authored-by: 阿菜 Cai <jimmyrss1102@gmail.com> Co-authored-by: liweijie0812 <674416404@qq.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
16 tasks
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.

🤔 这个 PR 的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
问题可能开始于 Tencent/tdesign-common#1092 (以及后续 css 的修改),其中
left: calc(100% - @pop-padding-m);导致第一个 popup 的内容 和 popper 位置计算错位,产生错位的问题。从而导致使用 Tencent/tdesign-common#1791position: absolute;来修复错位问题。从而导致翻转无效。后又在上述基础上在 #3744 进行翻转问题的修复,从而导致部分 style 样式丢失,从而尝试使用 #3803 修复。
现在先移除
left: calc(100% - @pop-padding-m);和position: absolute;,根据 popper 的翻转回调,来在不同的翻转位置(top/bottom)添加伪类用于防止鼠标从 target 移动到 popup 内容触发失效。📝 更新日志
fix(Menu): 修复
1.14.2版本后menu-item绝对定位样式丢失导致层级设置不生效的问题本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单