DataGrid adopts another DataGrid's component structure after opening and closing the settings dialog
@Victoriya25 is already working on this.
Since Jul 22, 2026.
Assessment
This issue has not been assessed yet.
Description
Bug description
When working with multiple DataGrid components in the Form Builder, opening the settings dialog of one DataGrid and closing it without saving can affect another DataGrid.
After opening the settings dialog of a second DataGrid and clicking Save (with or without making any changes), the second DataGrid unexpectedly adopts the internal component structure of the first DataGrid.
This results in the second DataGrid losing its original structure and becoming identical to the first one.
Version/Branch
Release: 5.2.2
Branch: main
Steps to reproduce
- Create a new form in the Form Builder.
- Add DataGrid A.
- Add any component inside DataGrid A (for example, a Text Field).
- Add DataGrid B.
- Leave DataGrid B empty or add different components.
- Open the settings dialog of either DataGrid.
- Close the dialog by clicking Cancel or by clicking outside the modal.
- Open the settings dialog of the other DataGrid.
- Click Save (the issue occurs whether or not any changes are made).
- Observe that the second DataGrid now contains the component structure of the first DataGrid.
Expected behavior
Each DataGrid should preserve its own component structure.
Opening and closing another DataGrid's settings dialog should not affect any other DataGrid, regardless of whether changes are made before saving.
Actual behavior
After saving the second DataGrid, its internal component structure is replaced with the structure of the first DataGrid whose settings dialog was previously opened.
This occurs even if no changes are made before clicking Save.
Screenshots / Evidence
The following evidence is attached:
- GIF showing the complete reproduction.
Additional context
- The issue occurs when the first settings dialog is closed either by Cancel or by clicking outside the modal.
- The issue also occurs whether the second DataGrid is saved with or without modifying any properties.
- The problem appears to be related to the DataGrid configuration dialog reusing or copying the internal component structure from another DataGrid instance.
- Dominant language
- JavaScript
- Stars
- 2.1k
- Forks
- 1.1k
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from formio/formio.js
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
WizardBuilder: sidebar categories stop opening/closing after "+ Page" (addPage() rebuilds twice)Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
SelectBoxes.checkComponentValidity returns false without populating the caller's errors array, so required + minSelectedCount is never enforcedMay be free again @aliassar claimed this 16 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 4/5 3-5 days Newbie friendliness 54/100
All issues in formio/formio.js
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
anothaDev/luci-theme-vantage#143 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kingcharleslzy-ai/dsh-purge#282 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
a-corriger bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
christian-raj/S-Aloha#340 ·
-
area:image documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day