Tencent / Tencent/tdesign-react

Menu组件submenu css max-height: 计算问题

Open
#3,222 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🐞 bug
Dominant language
TypeScript
Stars
965
Forks
373
Avg merge
3d 6h
Merged PRs (30d)
17

Description

tdesign-react 版本

^1.9.3

重现链接

No response

重现步骤

No response

期望结果

No response

实际结果

No response

框架版本

18.3.1

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the Menu component's submenu styling and reproducing the max-height calculation issue with tdesign-react ^1.9.3 and React 18.3.1, using the attached image as the only reported reference. Trace how the submenu height is calculated, then verify that the resulting submenu height matches its content without the reported layout problem.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.