Skip to content

x-sort:handle does not work if defined in a template #4482

Answered by SimoTod
enyancc asked this question in 5. Bugs
Discussion options

You must be logged in to vote

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]' }">

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by enyancc
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants