Nested cps-tab-group retains empty panels when selection resets during the parent’s slide animation

Chiusa
#929 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
angular, typescript
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

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
  1. Project a child component containing inner subtabs into an outer tab through @if.
  2. Select the second inner tab.
  3. Switch to another outer tab, then return.
  4. Reset the inner selection to 0 in the outer group’s afterTabChanged handler.
  5. 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

Lingua principale
TypeScript
Stelle
9
Fork
8
Merge medio
1g 1h
PR unite (30g)
23

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AbsaOSS/cps-shared-ui

Tutte le issue di AbsaOSS/cps-shared-ui

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.