Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

tab标签css属性设置为flex:1时,有很大机率出现dropdown按钮闪烁出现。

Open
#719 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript
Domain
frontend

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.

Description

tab标签css属性设置为flex:1,当拖动屏幕区域使组件大小发生变化时:

  1. 有很大机率出现dropdown按钮闪烁出现。
  2. tabListRef.current?.getBoundingClientRect()取值时,因为此时依然占据空间,导致取值不准确,具体表现为.${prefixCls}-ink-bar-animated的元素错位。
Dominant language
TypeScript
Stars
572
Forks
241
Avg merge
8h 7m
Merged PRs (30d)
3

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

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.

More from react-component/tabs

All issues in react-component/tabs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.