A server-side validation error removes the field's own validators (e.g. required)
メンテナーはふだん 3 日以内に返信
評価
この issue はまだ評価されていません。
説明
Describe the bug
When the REST API reports a validation error for a form field, FormService.addErrorToField() keeps the error in place with setValidators(), which replaces all validators of the field. removeErrorFromField() then calls clearValidators(). From then on the field has lost its own validators, such as required, so the client no longer flags it.
Seen on DSpace10.0; the same code is on main.
To Reproduce
- Start a new submission and leave a required field (e.g. Title) empty.
- Click "Deposit": the server-side error is shown on the field.
- Enter a value: the error goes away.
- Clear the field again: no "required" error is shown on the client any more.
Expected behavior
After a server-side error has been removed, the field still has its own validators, and clearing a required field shows the "required" error again.
Related work
Link to any related tickets or PRs here.
- 主要言語
- TypeScript
- スター
- 180
- フォーク
- 577
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 111
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DSpace/dspace-angular のほかの issue
-
affects: 10.x affects: 9.x bug component: submission Difficulty: Low help wanted ux
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
DSpace/dspace-angular#6412 ·
メンテナーはふだん 3 日以内に返信
-
accessibility affects: 10.x affects: 8.x affects: 9.x bug help wanted ux
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DSpace/dspace-angular#6364 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
Author browse links on item page open in a new tab, unlike other browse links対応中かも @jesielviana が 18 日前に担当しました。 オープンaffects: main bug component: Item low priority
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DSpace/dspace-angular#6268 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
Mathjax single dollar sign delimiter configuration causes unintentional math rendering in abstractsオープンbug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
DSpace/dspace-angular#6263 ·
メンテナーはふだん 3 日以内に返信
-
UI spacing regression on ds-generic-item-page-field (extra spaces around metadata values) in v10.xオープンaffects: 10.x affects: main bug component: Item ux
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DSpace/dspace-angular#6254 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
DSpace/dspace-angular の issue をすべて見る
似ている issue
-
comp/desktop desktop/shell os/windows P3 tool/file type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
NousResearch/hermes-agent#145928 ·
メンテナーはふだん 1 日以内に返信
-
compiler-dom: stringifyStatic renders :disabled="0" as a present attribute対応中かも @DaZuiZui が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
-
integration:coding-agents
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
vectorize-io/hindsight#6151 ·
メンテナーはふだん 1 日以内に返信
-
DogFooding
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
OpenAEV-Platform/openaev#8768 ·
メンテナーはふだん 1 日以内に返信