Changing the display from form to wizard to form and then removing the panel breaks the builder
@Tatsiana8 ci sta già lavorando.
Dal 25/6/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Describe the bug
When you render the FormBuilder, if you change the display type from form to wizard and then back to form, the builder is still on wizard mode after adding a new component and the component you just tried to add disappear until you click on the +page button
To Reproduce
Steps to reproduce the behavior:
- Render the builder using the
<FormBuilder />component - keep a reference to the builder using the
onBuilderReadyprop - change the display type to wizard (using the builder reference)
- change the display type back to form (using the builder reference)
- remove the remaining panel
- add a new textfield
Expected behavior
The builder should be in form mode and behave normally
Screenshots
Gif demonstrating the issue
Sandbox Example
builder-display-bug.zip
the zip file contain a simple vite app unzip it, run npm i and npm run dev to test the issue, here is the actual code used to recreate the bug:
import { FormBuilder } from "@formio/react";
import { useCallback, useRef } from "react";
function App() {
const ref = useRef(null);
const onBuilderReady = useCallback((builder) => {
ref.current = builder;
}, []);
return (
<>
<select onChange={(e) => {
ref.current.setDisplay(e.target.value);
}}>
<option value="form">form</option>
<option value="wizard">wizard</option>
</select>
<FormBuilder onBuilderReady={onBuilderReady}/>
</>
);
}
export default App;
Desktop (please complete the following information):
- OS: Windows
- Browser Chrome
- Version Version 137.0.7151.104 (Official Build) (64-bit)
Smartphone (please complete the following information):
Not tested
- Lingua principale
- TypeScript
- Stelle
- 371
- Fork
- 309
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di formio/react
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 64/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
-
onChange `modified` property remains false when file component is updatedForse di nuovo libera @ZenMasterJacob20011 l’ha presa 293 giorni fa e non c’è nessuna pull request aperta. Aperta
-
FormBuilder onChange callback not triggered when options prop is providedForse di nuovo libera @Victoriya25 l’ha presa 335 giorni fa e non c’è nessuna pull request aperta. Aperta
-
FormBuilder with OnChange broke textareaForse di nuovo libera @lane-formio l’ha presa 307 giorni fa e non c’è nessuna pull request aperta. Aperta
Tutte le issue di formio/react
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
vercel-labs/ui#809 ·
I maintainer di solito rispondono entro 1 giorno
-
bot:ai-assisted component:platform-js status:untriaged
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 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-reviewForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ranxianglei/billion-context#7068 ·
I maintainer di solito rispondono entro 1 giorno
-
vendor: bump whisper.cpp past 6a8addd — the current pin aborts the app on a failed Metal initAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
mybigday/whisper.rn#348 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
six-group/six-webcomponents#600 ·