react-component / react-component/tabs
tab标签css属性设置为flex:1时,有很大机率出现dropdown按钮闪烁出现。
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 572
- Forks
- 241
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 4
Description
tab标签css属性设置为flex:1,当拖动屏幕区域使组件大小发生变化时:
- 有很大机率出现dropdown按钮闪烁出现。
- tabListRef.current?.getBoundingClientRect()取值时,因为此时依然占据空间,导致取值不准确,具体表现为.${prefixCls}-ink-bar-animated的元素错位。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the tab layout and overflow code around tabListRef.current?.getBoundingClientRect() and OperationNode. Reproduce with a tab using flex:1 while resizing the component, then verify that the dropdown no longer flickers and the ${prefixCls}-ink-bar-animated element remains correctly positioned.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100