Bug in Sidebar Component: Multiple NavItems Considered Active
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by locating the Sidebar component’s NavItem active-state matching logic and any tests for nested routes; the issue does not name files or tests. Reproduce with /foo and /foo/bar and check how the component decides which item matches the current URL. Done means only /foo/bar is active on that route.
索引モデルが issue の本文から書いたものです。
説明
NOTE: We do not look at .zip attachments for issue investigation.
Describe the bug
We're using the Sidebar component with a DataProvider (just building a static list of elements). We have two nav items, with URLs like so:
/foo/foo/bar
The Sidebar should add the active CSS class to indicate the current page, which it does. Here I am when I'm at /foo:
However, if I'm on /foo/bar, both of these nav items are flagged as active, and thus both are shown as the current page, incorrectly:
To Reproduce
Add two Nav Items to a Sidebar component instance, one with a URL such as /foo, another which has a URL such as /foo/bar. Visit the /foo/bar route.
Expected behavior
Only The /foo/bar nav item should be considered Active
Versions (please complete the following information):
- .NET Version: .NET 9
- BlazorBootstrap: 3.4.0
Desktop (please complete the following information):
- OS: Windows 11, but reproduces in other environments (client/browser-agnostic)
- Browser: Confirmed in Firefox and Edge
- 主要言語
- HTML
- スター
- 1.2k
- フォーク
- 111
- 平均マージ
- 4分
- マージ済み PR(30日)
- 55
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
vikramlearning/blazorbootstrap のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
vikramlearning/blazorbootstrap#1388 ·
メンテナーはふだん 1 日以内に返信
-
NET 11 Supportオープン
難易度 3/5 1〜2日 初心者へのやさしさ 28/100
vikramlearning/blazorbootstrap#1362 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
vikramlearning/blazorbootstrap#1346 ·
メンテナーはふだん 1 日以内に返信
-
Showcase: rich sample websites built with Blazor Bootstrap対応中かも @gvreddy04 が 8 日前に担当しました。 オープン
vikramlearning/blazorbootstrap#1343 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
area-tree-view new component
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
vikramlearning/blazorbootstrap#1339 ·
メンテナーはふだん 1 日以内に返信
vikramlearning/blazorbootstrap の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DioxusLabs/blitz#1614 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
boxlite-ai/boxlite#2777 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
quality-assurance
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Paul-Austin-Oswego-CSC480-HCI521/gift-app#249 ·
メンテナーはふだん 1 日以内に返信
-
bug P3
難易度 1/5 1時間未満 初心者へのやさしさ 87/100
メンテナーはふだん 1 日以内に返信