Skip to content

fix(menu): menu item reversal not working and offset error#3804

Merged
uyarn merged 13 commits intodevelopfrom
rss1102/fix/menu/popup
Jan 20, 2026
Merged

fix(menu): menu item reversal not working and offset error#3804
uyarn merged 13 commits intodevelopfrom
rss1102/fix/menu/popup

Conversation

@RSS1102
Copy link
Copy Markdown
Collaborator

@RSS1102 RSS1102 commented Jan 19, 2026

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

问题可能开始于 Tencent/tdesign-common#1092 (以及后续 css 的修改),其中 left: calc(100% - @pop-padding-m); 导致第一个 popup 的内容 和 popper 位置计算错位,产生错位的问题。从而导致使用 Tencent/tdesign-common#1791 position: 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

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Jan 19, 2026

commit: b80c9cc

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 19, 2026

完成

@RSS1102 RSS1102 marked this pull request as draft January 19, 2026 11:56
@uyarn uyarn merged commit 5818e08 into develop Jan 20, 2026
9 checks passed
@uyarn uyarn deleted the rss1102/fix/menu/popup branch January 20, 2026 09:09
@github-actions github-actions bot mentioned this pull request Jan 21, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants