Skip to content

ListBox draggable.enabled = false throws error when trying to remove the placeholder #8169

@iordanGrancharov

Description

@iordanGrancharov

Bug report

If draggable.enabled is set to false, the dragStart is prevented, however, this triggers the dragCancel event of the draggable instance, which will call the _clear method. Since the dragStart event is prevented, no placeholder's been initialized, so the remove method throws an error when called on undefined.

Reproduction of the problem

  1. Open draggable - API Reference - Kendo UI ListBox - Kendo UI for jQuery
  2. Try to drag itemB1
  3. Inspect the console

Ticket ID: 1680552

Environment

Kendo UI version: 2023.2.718 or higher
Browser: [all]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions