angular / angular/components

bug(mat-tab-group): empty space in tab-group after last tab deletion

オープン
#29,681 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: material/tabs P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

### Is this a regression?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

In certain conditions when removing tab the blank space remains.

### Reproduction

Can be reproduced on angular components demo page: https://material.angular.io/components/tabs/examples#tab-group-dynamic

https://youtu.be/LAtw54i27wE

Steps to reproduce:
1. Create many tabs, paggination buttons must be visible
2. Scroll to the last tab
3. Delete it

### Expected Behavior

Deleted tab disappears and whole tab grup is scrolled to fill blank space

### Actual Behavior

Deleted tab disappears blank space remains.

### Environment

- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、記載されている手順と動画に従って、Angular Material の tab-group 動的サンプルで問題を再現します。スクロール後に最後のタブを削除したときの tab-group の動作を調査します。削除したタブが消え、残りのタブグループがスクロールして空白をなくせば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。