Skip to content

dragAndDrop config incorrect in the docs? #156

@CyJackX

Description

@CyJackX

At least in vue, I kept trying to pass a config object to dragAndDrop like the docs show at https://drag-and-drop.formkit.com/#draganddrop

// Example parent configuration object:
const config = { sortable: false }

// Vue:
dragAndDrop({
parent: parentRef,
values: valueRef,
config
})

When examining the type, Cursor told me that I should enter the attributes directly:

dragAndDrop({
  parent: sortableList,
  values: statementsList,
  draggable: (el: HTMLElement) => el.id !== "no-drag"
})

Vue, Typescript, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions