Skip to content

Enable Multidrag Plugin - #33

Closed
jtotty wants to merge 3 commits into
wotzebra:masterfrom
jtotty:master
Closed

Enable Multidrag Plugin#33
jtotty wants to merge 3 commits into
wotzebra:masterfrom
jtotty:master

Conversation

@jtotty

@jtotty jtotty commented Oct 17, 2023

Copy link
Copy Markdown

Fix for #14.

To use the Multidrag plugin, it has to be mounted before any of the Sortable objects are instantiated. However, we don't want to mount it if it won't be used. Added a new custom directive to trigger the mount and enable the multiDrag option.

The sortable multidrag functionality does not work unless mounted.

Developers must add the `wire:sortable-multidrag` attribute on their chosen element before any other sortable livewire directives to enable the plugin.
@gdebrauwer

Copy link
Copy Markdown
Contributor

Thanks for the PR, but I'm looking at adding support for all plugins in a separate PR #38

@gdebrauwer gdebrauwer closed this Oct 19, 2023
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.

2 participants