Skip to content

Error involving changing rendered list of items (Unhandled error during execution of scheduler flush) #7740

Discussion options

You must be logged in to vote

smooth-dnd re-orders the HTML elements that Vue controls, so when Vue re-renders, the elements are not in the place Vue thinks they are, messing up its patch phase.

A quick look at that lib's Vue 2 integration tells me you need to switch the default drop handler with the "react" one (which isn't really react-specific, it just skips the part that's messing with the DOM).

import { smoothDnD, drophandlers } from 'smooth-dnd'
smoothDnD.dropHandler = dropHandlers.reactDropHandler().handler

Moving this to discussions as it's basically a Usage question.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ffxsam
Comment options

Answer selected by ffxsam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #7736 on February 17, 2023 06:58.