Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngx-dnd copy of draggable to sub droppable not working #147

Open
isawk opened this issue May 27, 2019 · 0 comments
Open

ngx-dnd copy of draggable to sub droppable not working #147

isawk opened this issue May 27, 2019 · 0 comments

Comments

@isawk
Copy link

isawk commented May 27, 2019

I have a similar issue whiles attempting to create builder using directives, though modal is specified, in "grid", below input elements are not copied.

<ng-container *ngSwitchCase="'grid'">
    <div class="grid-x">
        <div class="cell large-auto medium-auto ngx-dnd-dropped-field-container_grid" dropZone="form-canvas" (drop)="elementDropped($event)" [removeOnSpill]="true" [model]="field.elements" ngxDroppable>
        </div>
        <div class="cell large-auto medium-auto ngx-dnd-dropped-field-container_grid" dropZone="form-canvas" (drop)="elementDropped($event)" [removeOnSpill]="true" [model]="field.elements" ngxDroppable>
        </div>
    </div>
</ng-container>

grid element

{ name: 'Grid', type: "grid", descritpion: 'Grid layout', icon: 'grid_on', elements: [] as any[]}

In the above, onDrop logs show field.elements with expected value, however in ngxDroppable, dropped item is not cloned.

Screenshot 2019-05-21 at 16 22 25

Image above shows that element [1] is successfully placed in Droppable, thus rendering [A], however when dropped in grid it is not rendered though it is successfully placed in [model]="field.elements"

Screenshot 2019-05-21 at 16 25 04

Image above shows that elements are successfully added to [model]="field.elements", however as indicated above render/copy doesn't work. Grid elements dropZone="form-canvas" same as over arching Droppable dropZone.

Originally posted by @isawk in #60 (comment)

@isawk isawk changed the title @Hypercubed ngx-dnd copy of draggable to sub droppable not working May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant