kartik-v / yii2-tree-manager

An advanced tree management module using nested sets for Yii 2.
http://demos.krajee.com/tree-manager
Other
150 stars 107 forks source link

treeview:create event shows 'parent' as undefined #279

Closed gb5256 closed 3 years ago

gb5256 commented 3 years ago

Hi, I just try to catch the parent Id of the current :create event like this:

$("#tree").on('treeview:create', function(event, parent) { console.log(parent); });

But the console shows "undefined". Everything else is working, so the node is created under the parent as expected if I save the form. Any ideas?

Thanks.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/96842426-treeview-create-event-shows-parent-as-undefined?utm_campaign=plugin&utm_content=tracker%2F10339775&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F10339775&utm_medium=issues&utm_source=github).
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.