swimlane / ngx-dnd

🕶 Drag, Drop and Sorting Library for Angular2 and beyond!

Home Page:https://swimlane.github.io/ngx-dnd/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fetch model data in component

sfurman89 opened this issue · comments

commented

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Sorry, we will not be able to answer every support request.  Please consider other venues for support requests

Current behavior

UI works perfectly (drag and drop, sorting, adding n nested objects into array. When I click save, i am not able to get data (megaMenus variable is always the same even if i drag items around)

Expected behavior

When I click save, i want to get updated data

Reproduction of the problem

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

localhost

  • ngx-dnd version: 8.1.0
  • Angular version: 8.x.x
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    TypeScript 3.5.3

Screenshot 2020-08-19 at 03 02 49

commented

Hey guys,

I've found a solution with drop event and manually refreshing the array to be the same as model.

Regards