ChainOfThought: the header's aria-controls points at an element that is never rendered
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 88/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- react, typescript
調査の方向性
packages/elements/src/chain-of-thought.tsx の、80 行目と 185 行目付近にある ChainOfThoughtHeader と ChainOfThoughtContent の箇所から始めます。それらの Collapsible の使用方法を、trigger と content に 1 つの Root を使用している Reasoning と比較し、続いて提供された render と click のシーケンスを再現します。完了条件は、ボタンの aria-controls がレンダリングされた Steps 要素の id と一致し、既存の要素を参照することです。
索引モデルが issue の本文から書いたものです。
説明
ChainOfThoughtHeader wraps its trigger in its own <Collapsible> (chain-of-thought.tsx#L80) and ChainOfThoughtContent wraps the content in a second one (#L185). Radix generates a content id per root, so the trigger's aria-controls names the content of the header's root, which never renders, and the content that does render has an id nothing refers to. Assistive tech loses the link between the button and the steps it expands.
Repro (registry main 6a9d5b1, Chrome):
render(
<ChainOfThought>
<ChainOfThoughtHeader />
<ChainOfThoughtContent>Steps</ChainOfThoughtContent>
</ChainOfThought>
);
await userEvent.click(screen.getByRole("button"));
const controls = screen.getByRole("button").getAttribute("aria-controls");
controls === screen.getByText("Steps").id; // false
document.getElementById(controls); // null
Expected: aria-controls is the id of the rendered content, as in Reasoning, which uses one Collapsible root for its trigger and content.
- 主要言語
- TypeScript
- スター
- 2.5k
- フォーク
- 291
- 平均マージ
- 20分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
vercel/ai-elements のほかの issue
-
PromptInput: successful async submit clears text typed while the submit was pending対応中かも @NicolasMilliard が 11 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
vercel/ai-elements#518 ·
メンテナーはふだん 1 日以内に返信
-
Attachments: remove button stays invisible on keyboard focus and on touch screens対応中かも @HardMax71 が 27 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
vercel/ai-elements#507 ·
メンテナーはふだん 1 日以内に返信
-
PromptInput rejects every file when accept lists file extensions (".xlsx")対応中かも @HardMax71 が 27 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
vercel/ai-elements#501 ·
メンテナーはふだん 1 日以内に返信
-
Context: ContextReasoningUsage and ContextCacheUsage don't compile with ai 7対応中かも @burrows99 が 18 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
vercel/ai-elements#500 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
vercel/ai-elements#498 ·
メンテナーはふだん 1 日以内に返信
vercel/ai-elements の issue をすべて見る
似ている issue
-
area:desktop area:ui bug platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
anthropics/claude-code#106183 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
feature:App-Tour feature:Chat ready Web
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
digitalfabrik/integreat-app#4523 · リアクション 2 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Required Lexical field accepts two empty paragraphs対応中かも @lazerg が今日担当しました。 オープンBug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
payloadcms/payload#19222 ·
メンテナーはふだん 1 日以内に返信