Changing the display from form to wizard to form and then removing the panel breaks the builder
@Tatsiana8 y travaille déjà.
Depuis le 25/6/2025.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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
- Langage dominant
- TypeScript
- Étoiles
- 371
- Forks
- 309
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de formio/react
-
Difficulté 3/5 1-2 jours Accessibilité débutants 64/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
-
onChange `modified` property remains false when file component is updatedPeut-être à nouveau libre @ZenMasterJacob20011 l’a pris il y a 293 jours, et aucune pull request n’est ouverte. Ouverte
-
FormBuilder onChange callback not triggered when options prop is providedPeut-être à nouveau libre @Victoriya25 l’a pris il y a 335 jours, et aucune pull request n’est ouverte. Ouverte
-
FormBuilder with OnChange broke textareaPeut-être à nouveau libre @lane-formio l’a pris il y a 307 jours, et aucune pull request n’est ouverte. Ouverte
Toutes les issues de formio/react
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
vercel-labs/ui#809 ·
Les mainteneurs répondent en général sous 1 jour
-
bot:ai-assisted component:platform-js status:untriaged
Difficulté 1/5 Moins d'une heure Accessibilité débutants 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-reviewPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
ranxianglei/billion-context#7068 ·
Les mainteneurs répondent en général sous 1 jour
-
vendor: bump whisper.cpp past 6a8addd — the current pin aborts the app on a failed Metal initOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
mybigday/whisper.rn#348 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
six-group/six-webcomponents#600 ·