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
Comments
Comment #2
liquidcms commentedlooking 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.