fix: 根据activeKey显示额外内容导致最后一个tab点击失效 #662
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolve ant-design/ant-design#44632
resolve ant-design/ant-design#38270
tabBarExtraContent 如果根据 activeKey 显示时,点击 最后一个tab 时失效
iShot_2023-05-17_23.14.51.mp4
ant-design
线上demo
,操作顺序是 先点击折叠的Tab4, 然后点击Tab5, 继续点击Tab6https://codesandbox.io/s/hua-dong-antd-5-4-2-forked-jp2jmf?file=/demo.tsx
或者使用当前库的demo
原因是: 当额外内容显示为空时,
ResizeObserver
的onResize
没有重新触发。