FormBuilder onChange callback not triggered when options prop is provided
@Victoriya25 がすでに取り組んでいます。
2025年12月17日 から。
評価
この issue はまだ評価されていません。
説明
Describe the bug
The onChange callback of FormBuilder from @formio/react is not triggered when the options prop is provided. This happens even if options is an empty object (options={{}}). As soon as options is set, form changes made in the builder UI no longer invoke the onChange handler.
Version/Branch
@formio/react: "6.1.1"
Framework: Next.js (App/Pages Router)
Rendering: client-side only (ssr: false via dynamic import)
To Reproduce
Steps to reproduce the behavior:
- Create a Next.js project and dynamically import
FormBuilder:
const FormBuilder = dynamic(
() => import('@formio/react').then((module) => module.FormBuilder),
{ ssr: false }
)
- Define a simple onChange callback:
const handleFormChange = (schema: FormType) => {
console.log('i handled the change')
}
- Render FormBuilder with initialForm, onChange, and any options prop (even an empty object):
<FormBuilder
initialForm={initialForm}
onChange={handleFormChange}
options={{}}
/>
(The same issue occurs with a fully customized options.builder configuration.)
- Interact with the FormBuilder UI (add/remove/update components).
- Observe that handleFormChange is never called.
Expected behavior
The onChange callback should be triggered whenever the form schema changes in the FormBuilder, regardless of whether the options prop is provided (including options={{}}).
- 主要言語
- 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 with OnChange broke textarea再び着手できるかも @lane-formio が 307 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
vercel-labs/ui#809 ·
メンテナーはふだん 1 日以内に返信
-
bot:ai-assisted component:platform-js status:untriaged
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
midnightntwrk/platform-js#38 ·
-
[bug] Second false positive on high-cost plugin alert: detection only compares patch entry id, community plugin dsh-auto | [bug] 高成本插件告警第二次误报:检测只比对 patch 条目 id,社区插件 dsh-auto-review 被认成 @deepseek-ai/dsh-experimental-auto-review対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ranxianglei/billion-context#7068 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
mybigday/whisper.rn#348 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
six-group/six-webcomponents#600 ·