sortable icon indicating copy to clipboard operation
sortable copied to clipboard

Add support for constrainDimensions option

Open Tylerian opened this issue 4 years ago • 0 comments

Context

Dragging an item without fixed dimensions exhibits weird behavior. This is a well known problem on the shopify/draggable library itself and it offers a constrainDimensions option just for that, but livewire-sortable has no way to specify that.

Solution

Add support for passing the constrainDimensions option to a sortable component by setting the wire:sortable.constrainDimensions attribute.

Tylerian avatar Feb 11 '22 16:02 Tylerian