react-component / react-component/tabs

激活 tabbar 无法显示

Open
#239 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
572
Forks
241
Avg merge
4d 18h
Merged PRs (30d)
4

Description

当组件挂载后,若父元素此时 display: none,激活的下划线无法计算出位置及宽度,当父元素显示时若无重新渲染,则激活 tab 的下划线无法出现。

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the issue by mounting the tabs while its parent has display: none, then showing the parent without rerendering. Trace the tabbar measurement and active underline positioning entry point; done means the active underline appears with the correct position and width after the parent becomes visible.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.