<Label> has no way of providing the input value
まだ誰も着手していません。
評価
調査の方向性
Start at the Label component and trace its use of input_id/2 versus input_id/3, using the reproduction markup with a nested RadioButton as the behavioral check. The work is done when the label correctly selects a nested radio button or supports an explicit input value for cases where wrapping is not feasible.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The Label component internally uses input_id/2, never input_id/3. The generated for attribute is never correct for a radio button or checkbox.
As a workaround, I am currently doing
<Label opts={for: nil}>
<RadioButton value="value" />
label text
</Label>
How to reproduce it
Clicking on the label text with this markup
<Label>
<RadioButton value="value" />
label text
</Label>
There are probably also legitimate use cases where wrapping the around the input is not feasible, so it would be good to allow <Label value={...}>text</Label> or similar.
does not select the nested radio button.
Your Environment
Surface: v0.7.0
LiveView: v0.17.6
Elixir: v1.13.0 (compiled with Erlang/OTP 24)
- 主要言語
- Elixir
- スター
- 2.1k
- フォーク
- 146
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
surface-ui/surface のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
surface-ui/surface#634 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
surface-ui/surface#770 ·
-
Website is downオープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
surface-ui/surface#768 · コメント 4 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
surface-ui/surface#762 · コメント 2 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
surface-ui/surface#759 · リアクション 1 件 ·
surface-ui/surface の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
carverauto/serviceradar#5732 ·
メンテナーはふだん 1 日以内に返信
-
Markdown preview can show an outdated version of the cell source対応中かも @RaphaelFakhri が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
livebook-dev/livebook#3228 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 93/100
TomerAberbach/profiler-md#732 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
inertiajs/inertia-phoenix#84 ·
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
beyond-all-reason/teiserver#1676 ·
メンテナーはふだん 1 日以内に返信