laravel-blade-sortable icon indicating copy to clipboard operation
laravel-blade-sortable copied to clipboard

Multiple drop zones

Open Hesesses opened this issue 3 years ago • 2 comments

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:

  • do not use group param
  • use different group params for A and B
  • use group param for A, empty for B
  • use group param for B, empty for A

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

Hesesses avatar May 03 '22 12:05 Hesesses

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

fotrino avatar May 12 '22 02:05 fotrino

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: @.***>

Hesesses avatar May 12 '22 05:05 Hesesses