Wierd custom onSubmit behavior
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
Form コンポーネントの送信処理から始め、その動作を formio.js の nosubmit オプションと比較してください。明示的なフォーム送信と subForms に関するケースを再現し、その後、apiBaseUrl POST なしで onSubmit が呼び出されるかを確認してください。両方の経路について明確な説明または修正ができれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi,
My react app sends formio forms to camunda bpe. I’m having a bit of an odd issue using @formio/react: sometimes it doesn’t call the provided onSubmit handler. That seams to happen in two cases: 1. when I set the form submission; 2. when I have subForms in the form. When the anomaly happens, I see a POST request that tries to persist the submission to the apiBaseUrl (and fails, obviously, because there’s no backend there).
Could someone help me understand what triggers the “default” submission as opposed to the custom one? I think that is the use case for the nosubmit=true option of the formio.js but I think it is not present as an option for the Form component.
thanks
- 主要言語
- TypeScript
- スター
- 371
- フォーク
- 309
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
formio/react のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
onChange `modified` property remains false when file component is updated再び着手できるかも @ZenMasterJacob20011 が 293 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
FormBuilder onChange callback not triggered when options prop is provided再び着手できるかも @Victoriya25 が 335 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
FormBuilder with OnChange broke textarea再び着手できるかも @lane-formio が 307 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
似ている issue
-
bot:ai-assisted component:platform-js status:untriaged
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
midnightntwrk/platform-js#38 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ranxianglei/billion-context#7068 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
mybigday/whisper.rn#348 ·
-
enhancement severity:low
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Battle-Cattle/BCUK-Bot-4#1075 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
ilan-pinto/roaring-lions#1552 ·
メンテナーはふだん 1 日以内に返信