Replies: 1 comment
-
You can also pass the configuration on the main tag instead of creating a fake hidden element: https://alpinejs.dev/plugins/sort#custom-configuration <div x-sort x-sort:config="{ handle: '[x-sort:handle]' }"> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
in following example x-sort:handle won't be picked up by x-sort directive and the whole item would be draggable.
related to the check in packages/sort/src/index.js#L28, because no actual item exist at the time of initialisation.
can be patched with adding hidden tag with [x-sort:handle] outside of template.
Beta Was this translation helpful? Give feedback.
All reactions