Changing the display from form to wizard to form and then removing the panel breaks the builder
@Tatsiana8 đang làm issue này rồi.
Từ ngày 25/6/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 371
- Fork
- 309
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của formio/react
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
onChange `modified` property remains false when file component is updatedCó thể làm lại được @ZenMasterJacob20011 đã nhận 293 ngày trước và không có pull request nào đang mở. Đang mở
-
FormBuilder onChange callback not triggered when options prop is providedCó thể làm lại được @Victoriya25 đã nhận 335 ngày trước và không có pull request nào đang mở. Đang mở
-
FormBuilder with OnChange broke textareaCó thể làm lại được @lane-formio đã nhận 307 ngày trước và không có pull request nào đang mở. Đang mở
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
vercel-labs/ui#809 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bot:ai-assisted component:platform-js status:untriaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 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-reviewCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ranxianglei/billion-context#7068 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
vendor: bump whisper.cpp past 6a8addd — the current pin aborts the app on a failed Metal initĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
mybigday/whisper.rn#348 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
six-group/six-webcomponents#600 ·