RamonSmit / Nestable2

New pickup of Nestable!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add first child via 'add' method doesn't add collapse/expand buttons

RomanBurunkov opened this issue · comments

I've tested add method and found out one issue when adding item with parent_id.
When adding first child to parent with id parent_id, add method doesn't add expand/colapse buttons and further we have no chance to add them from user side. Looks like we should use setParent method which already exist. But I'm not quite sure where to add it.

Please open the issue if the problem still exist.
I will make new release after you confirm the solution.