Skip to content

Resolve drag-and-drop position desync when reordering contents items fast - #8372

Open
wesleybl wants to merge 2 commits into
18.x.xfrom
drag-and-drop
Open

Resolve drag-and-drop position desync when reordering contents items fast#8372
wesleybl wants to merge 2 commits into
18.x.xfrom
drag-and-drop

Conversation

@wesleybl

@wesleybl wesleybl commented Jul 8, 2026

Copy link
Copy Markdown
Member

Use functional setState in onOrderItem to ensure each hover swap chains on the latest queued state instead of stale rendered state. Use monitor's tracked order in the drop handler to avoid stale props.order for the backend API call.

Note: This problem does not occur in the new drag-and-drop implementation in Volto 19.

…fast

Use functional setState in onOrderItem to ensure each hover swap chains
on the latest queued state instead of stale rendered state. Use monitor's
tracked order in the drop handler to avoid stale props.order for the
backend API call.
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