[BUG] dbc Tabs not showing default first tab anymore with Dash 4.2.0 and higher

オープン
#3,929 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

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

調査の方向性

Issue の最小限の Python 例から始め、Dash 4.1.0 と 4.4.1、および dash-bootstrap-components 2.0.4 で再現します。Tabs のレンダリングとデフォルト選択の動作を追跡します。初回ロード時に最初のタブの内容が表示され、タブ間の切り替えが引き続き機能すれば完了です。

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

説明

bug P1 size: 3

For any Dash version > 4.1.0, the dash-bootstrap-components (dbc) Tabs do not show the default 1st tab anymore.

With dash==4.1.0 and dash-bootstrap-components==2.0.4

Image

With dash==4.4.1 and dash-bootstrap-components==2.0.4

Image

With the following trivial example:

from dash import Dash, html
import dash_bootstrap_components as dbc

app = Dash(__name__, title="Dash Tab Test", external_stylesheets=[dbc.themes.BOOTSTRAP])

children = [dbc.Tab(html.H2(f"Test Tab {i}"), label=f"Tab {i}") for i in range(3)]

app.layout = (
    html.Div(
        [
            dbc.Tabs(children=children)
        ]
    ),
)


if __name__ == "__main__":
    app.run(debug=True)

Note: if you switch on the tabs back and forth, the tab contents appear again. It's just the first tab does not show up anymore by default. See also dbc documentation.

主要言語
Python
スター
24.4k
フォーク
2.3k
平均マージ
2日 7時間
マージ済み PR(30日)
13

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

plotly/dash のほかの issue

plotly/dash の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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