formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

[Bug] Form Builder - cannot remove column in columns component

Open Davidvlv opened this issue 8 years ago • 8 comments

Hi, I have found a bug in the Form Builder in 3.0.0-rc.XX:

You can add extra columns to the columns component, but when you press the [x] to remove a column and then click save, it does not remove the column.

image

Davidvlv avatar Jul 11 '18 04:07 Davidvlv

EditComponent event confirms prior to clone that data is unaffected by the button to remove. So that leads us to DataGrid, as per src\components\columns\editForm\Columns.edit.display.js

The event is propagated up to the Base.js -> removeChildFrom. All it does is process each of the 4 "components" (elements in columns in the row for the intended row to delete it visually). So, without digging deeper than that, and after running grep scan for keyword "delete" and "remove", I would like to say that the event is completely unhandled, and doesn't alter the internal data of the column whatsoever. I could be wrong, but not seeing it. And NestedComponent (column's superclass), too doesn't handle data alterations on delete.

I'd try and fix this but I already spent all day fixing a handful of other problems on this library. Sorry!

ensemblebd avatar Jul 11 '18 20:07 ensemblebd

This issue has been resolved

jeriah-formio avatar Nov 28 '18 20:11 jeriah-formio

Hi I am facing same issue, If I added new Column in columns component and then I save it. now I edit columns and remove newly added column and save it. Still it that column exist on canvas. And when I click on edit it still shows three rows in grid.

AvnishVerma avatar Mar 28 '19 06:03 AvnishVerma

Thank you for reaching out! We have created a ticket (FOR-2172) and have added this to our planning document to be discussed in our planning session on Monday.

We will let you know the priority level of this item then.

Thanks!

wag110894 avatar Mar 28 '19 16:03 wag110894

Is this issue fixed? Have any solution ? please help us

ranjanitechleaf avatar May 15 '19 13:05 ranjanitechleaf

This item is currently on one of our Developers List. We welcome a pull request for this item to be resolved or we have a process to expedite this issue if you are interested. Please send an email to [email protected] if you would like the price to expedite this for you.

Thanks.

wag110894 avatar May 15 '19 13:05 wag110894

@Davidvlv @ssrini Can you please confirm if this is still an issue for you on the latest builder/renderer versions? Unable to replicate on our end.

jeriah-formio avatar Jul 28 '19 23:07 jeriah-formio

@jhen1422 Still an issue, I updated #1422 with sample

srinisubramanian avatar Jul 29 '19 06:07 srinisubramanian