Skip to content

Cannot nest elements unless parent contains at least one child #1653

Open
@cowwoc

Description

@cowwoc

Problem:

  1. Given a list of top-level nodes, I am not presented with a drop-target for nesting unless the parent already contains at least one child. In the jsbin link below, notice that you can drag-n-drop to nest under Item 1 but not under Items 2-5.

  2. In my own application (this doesn't happen in the jsbin example below) I am able to nest children if I drag-n-drop from below the parent (drag upwards) but if I drag in the opposite direction I am not presented with a drop target for nesting. I am only presented with a drop target for swapping the top-level items.

JSBin/JSFiddle demonstrating the problem:

https://jsbin.com/notiyoheho/1/edit?html,js,output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions