whitecube / nova-flexible-content

Flexible Content & Repeater Fields for Laravel Nova
MIT License
780 stars 229 forks source link

Bug with drag and drop reordering #426

Open LorenzoSapora opened 1 year ago

LorenzoSapora commented 1 year ago

Nova 4 (latest) NFC 1.0.6

10 example blocks, moving 1 to 5 moves block to the 5th position. However, if I move the 5th block to the 1st (or 2nd, 3rd), it'll only move up one step.

Visual example:

nfc-reorder-bug

Note: after the first "failure", reordering up works as expected.

LorenzoSapora commented 1 year ago

Actually looking at the gif I posted, the ordering does seem to work, but the visual aspect breaks. The NUMBERING is correct, just not the frontend. Hmm.

soubanq commented 1 year ago

Still waiting for a fix on this one. I found re-ordering works fine when dragging down. But when dragging up, the item you're dragging will only move one step up, no matter how far up you drag it.

soubanq commented 1 year ago

@LorenzoSapora if you're still after a fix for this you can find it on the PR above ^

tmartty commented 1 year ago

Can we get this merged?