Nested cps-tab-group retains empty panels when selection resets during the parent’s slide animation
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- angular, typescript
- 领域
- frontend
调研方向
The bug lives in the nested cps-tab-group behaviour, so start with the tab group component's selectedIndex handling and the afterTabChanged emission around the parent's slide animation. The issue gives reproduction steps and a video but names no file. Done means that resetting the inner selectedIndex during the outer animation leaves exactly one .cps-tab-content-inner wrapper, with the repeated cycle not adding more.
由索引模型根据 Issue 内容生成。
描述
Resetting an inner tab group’s selectedIndex from the outer group’s afterTabChanged handler leaves a stale .cps-tab-content-inner in the DOM. The empty wrapper retains its height, creating a blank gap above the content. Repeating the sequence adds more stale wrappers.
Steps to reproduce
- Project a child component containing inner subtabs into an outer tab through
@if. - Select the second inner tab.
- Switch to another outer tab, then return.
- Reset the inner selection to
0in the outer group’safterTabChangedhandler. - Select the second inner tab again.
Expected
One content wrapper containing the selected tab’s content.
Actual
An empty wrapper remains above the populated wrapper. Each repeated cycle adds another stale wrapper.
Video
https://github.com/user-attachments/assets/e63ea531-bb2c-442d-a95b-7ffd6e456567
- 主要语言
- TypeScript
- 星标
- 9
- 派生
- 8
- 平均合并
- 1 天 7 小时
- 30 天内合并 PR
- 24
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AbsaOSS/cps-shared-ui 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
AbsaOSS/cps-shared-ui#875 ·
维护者通常 1 天内回复
-
InputComponent - expand type beyond text/number/password可能重新可做 关联的 PR 已关闭且未合并。 未关闭enhancement library
难度 1/5 1 小时以内 新手友好度 85/100
AbsaOSS/cps-shared-ui#644 ·
维护者通常 1 天内回复
-
cps-table/tree-table: changing rows-per-page on an empty table doesn't emit可能已有人在做 @lukasmatta 于 4 天前认领。 未关闭bug library
AbsaOSS/cps-shared-ui#944 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Esc: gaps in tooltip and notification dismissal可能已有人在做 @fateeand 于 4 天前认领。 未关闭accessibility bug library
AbsaOSS/cps-shared-ui#942 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
AbsaOSS/cps-shared-ui#940 ·
维护者通常 1 天内回复
查看 AbsaOSS/cps-shared-ui 的全部 Issue
相似的 Issue
-
code-quality good-first-issue
难度 2/5 1-3 小时 新手友好度 72/100
OpenRailAssociation/netzgrafik-editor-frontend#1481 ·
维护者通常 1 天内回复
-
bug implicit-state
难度 2/5 1-3 小时 新手友好度 74/100
-
area:models enhancement
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug frontend ui
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Recording drops clicks on links, filters and checkboxes that share a form with a search field可能已有人在做 @columbia11 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
Tencent/BrowserSkill#657 ·
维护者通常 1 天内回复