asantibanez / laravel-blade-sortable

Custom Blade components to add sortable/drag-and-drop HTML elements in your apps.
MIT License
409 stars 79 forks source link

Multiple drop zones #20

Open Hesesses opened 2 years ago

Hesesses commented 2 years ago

Hello,

The problem i'm having is to NOT have linked drop zones. I would like to have just 2 listings A and B. You should not be able to drag item from A to B or from B to A

I have tried this with:

Any ideas?

Edit:

I can return false from wire:onSortOrderChange function to disable the dropping, but would be nice to disable this from UI also

fotrino commented 2 years ago

Have you tried :allow-drop="false" ?

Hesesses commented 2 years ago

My example was simplified (a and b). In my real world app, cant use allow-drop=”false”

On Thu 12. May 2022 at 5.42, Facundo Otrino @.***> wrote:

Have you tried :allow-drop="false" ?

— Reply to this email directly, view it on GitHub https://github.com/asantibanez/laravel-blade-sortable/issues/20#issuecomment-1124472247, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUYRMXDORXD5Q7ADV4C47DVJRVZ7ANCNFSM5U6ZAAWQ . You are receiving this because you authored the thread.Message ID: @.***>