Draggable weight not saved for custom entity.

Created on 5 August 2025, 18 days ago

Problem/Motivation

I have a custom entity and i am using the Field UI to add a weight field to it (field_weight). I then have a view listing out my custom entities and have added the Weight Selector field for my added weight field. This gives me the draggable icon on each row.

I am sure this used to work but now, i can drag items to where i want them but nothing is saved when i click save button. Also, i get the hide/show row weights selector at the top of my view. Selecting to show row weights hides the draggable icon but doesnt show the weights.

Also, when i drag an item i get the following console error:

Uncaught TypeError: can't access property "matches", field[0] is undefined - in tabledrag.js

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇨🇦Canada liquidcms

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

Comments & Activities

  • Issue created by @liquidcms
  • 🇨🇦Canada liquidcms

    looking at the tabledrag code and i thought to try adding (in views) the class "weight-selected" to the weight selector field i added and this fixes the tabledrag js error and now displays message "you have unsaved changes" when i drag a row; but still nothing is saved.

Production build 0.71.5 2024