Skip to content

Prevent dragging a component #54

Discussion options

You must be logged in to vote

I want to prevent dragging a component into a specific container node. Is there a way to do this?

  1. In a future release, we plan to add the ability to limit Drag'n'Drop with a custom function, example:
    children: nodeArray
      .withInsertRestriction((_, child) => {
        return child.model.type === RsWizardStepComponentType
      }),
  1. The context is that I have a render form schema with onFormSchemaChange, and I want to implement some logic to update the schema and then render it back to the form. However, there is a problem: when I use setState(newFormSchema), the form updates, but all components inside the form builder unmount and remount, causing a flickering effect in the …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tuthanhoancanh012
Comment options

@tuthanhoancanh012
Comment options

@optimajet
Comment options

@tuthanhoancanh012
Comment options

Answer selected by sergeythrees
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants