Skip to main content

All Questions

0 votes
1 answer
580 views

Error with Rails Sortable - Cannot read properties of undefined (reading 'dataset')

I followed this tutorial to implement drag and drop. https://www.driftingruby.com/episodes/drag-and-drop-with-hotwire I am getting an error on drop that says Uncaught (in promise) TypeError: Cannot ...
spacerobot's user avatar
0 votes
2 answers
1k views

How to get the right position with Sortable.js, acts_as_list and Stimulus for nested_attributes

I'm trying to implement the "Drag and Drop Sortable Lists" (https://gorails.com/episodes/rails-drag-and-drop-sortable) with nested_attributes. Unfortunately, I'm getting the wrong :position. ...
Mirha Masala's user avatar
0 votes
2 answers
1k views

How to handle drag and drop between multiple lists using SortablejS and acts_as_list gem?

I've been searching for a day and a half for a solution. I've got several tables (Categories) that allow the user to drag and drop each row (Item) to reorder the position of each item on that table (...
J. Jackson's user avatar
  • 3,766