8000 [v0.3.x] Handle not working when no items on init by gdebrauwer · Pull Request #35 · wotzebra/livewire-sortablejs · GitHub
[go: up one dir, main page]

Skip to content

[v0.3.x] Handle not working when no items on init #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

gdebrauwer
Copy link
Contributor

Followup to #34

@gdebrauwer gdebrauwer merged commit d6b7325 into master Oct 18, 2023
@gdebrauwer gdebrauwer deleted the feature/handle-not-working-when-no-items-on-init-in-livewirev3 branch October 18, 2023 08:19
@jarivanb
Copy link
jarivanb commented Oct 19, 2023

Since this update the plugin doesn't work anymore. I also don't have any javascript errors. I just can't drag-and-drop anymore.
Livewire v3

@jarivanb
Copy link
jarivanb commented Oct 19, 2023

UPDATE: I needed to add manually wire:sortable-group.handle to the element. Otherwise the full element wasn't draggable like before.

@gdebrauwer
Copy link
Contributor Author

@Jatarii Is it possible that certain items have a handle and other items do not? If all items have no handle, then the full element of each item is draggable when I test this. But if I have a mix of items with and without a handle, then those without a handle can't be dragged.

@jarivanb
Copy link

@gdebrauwer No, they all had no handle. I was using the multiple groups. Maybe it had something to do with that. But with adding the handle manually, it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drag handle only works if the sortable list contains items in the initial load
2 participants
0