Input components do not use `value=""` when the form data has a value
まだ誰も着手していません。
評価
調査の方向性
Start by reproducing the issue with a TextInput whose value is set to an empty string while the form data contains a value, then compare the result with Phoenix.HTML.Form behavior. Trace the Surface input component path and add coverage showing that the rendered input includes value=""; done means the component matches the expected form behavior.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
How to reproduce it
- Have some data in the field being rendered
<TextInput value="" />
The rendered does not have value="" but the value from the form data / changeset.
The functions in Phoenix.HTML.Form do not show this behaviour.
The behavior you expected
Expected the components to behave like Phoenix.HTML.Form.
Your Environment
Surface: v0.7.0
LiveView: v0.17.6
Elixir: v1.13.0
Edited because HTMLish content needs to be fenced, otherwise <TextInput... becomes invisible ;)
- 主要言語
- 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(dashboard): gate card last-seen badge shows inventory-sync timestamp, not sweep observation timeオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
carverauto/serviceradar#5793 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
expert-lsp/expert#942 ·
メンテナーはふだん 1 日以内に返信
-
npm: file fetcher aborts with "engines.<key> must be a string" when package.json engines contains a nested object (e.g. cordovaDependencies)対応中かも @v-sachin-sandhu が今日担当しました。 オープンL: javascript
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
dependabot/dependabot-core#16615 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug priority: medium
難易度 1/5 1時間未満 初心者へのやさしさ 93/100
TomerAberbach/profiler-md#732 ·
メンテナーはふだん 1 日以内に返信