Having trouble getting the example form builder working with new versions of @dnd-kit #21
brandoncordell
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@dnd-kit seems to have changed quite a bit since the basic form builder example. I followed the migration guide on the website and used it's built-in AI to get things changed over but I'm having trouble getting it to work with builder.
The rest of the builder works great, but sorting is the main issue. I think it's due to the fact that sortable now needs an index passed to it, e.g.
{items.map((item) => <Sortable id={id} index={entity index} />}Is there a good way to map through BuilderEntities, grabbing the index of each?
Beta Was this translation helpful? Give feedback.
All reactions