Remove drag and drop functionality, no more empty tables created on every save

Created on 20 December 2024, 4 months ago

As per https://www.drupal.org/project/tablefield/issues/3385030#comment-15321759 πŸ’¬ After upgrade to D10, empty tablefield output is displaying in paragraph on node Active and https://www.drupal.org/project/tablefield/issues/3490590#comment-15910349 πŸ› Empty tables are being saved to the db if a tablefield is empty Active the drag and drop functionality added a year ago is the culprit. I quickly tested it, then went in and added in all the changes to /src/element/Tablefield.php since.

I've done some quick testing since I don't use the drag and drop and find the extra tables being added on every save annoying. At this point it's more of a fork, perhaps there's a more elegant way of having drag and drop functionality without putting in spacer content (clearing it before the save completes, checking for it on save, some other way of forcing that interaction) but it seems to work. I've done some quick testing on localdev on my laptop and it seems fine.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States erutan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024