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

getting error on using ngJsTree in a modal #120

Open
mjseyyedi opened this issue Jul 9, 2017 · 0 comments
Open

getting error on using ngJsTree in a modal #120

mjseyyedi opened this issue Jul 9, 2017 · 0 comments

Comments

@mjseyyedi
Copy link

mjseyyedi commented Jul 9, 2017

Hi,
I'm using your library in a modal, but I have two problem :
1- sometimes when I want to open my modal , I got the error below

angular.js:9192 TypeError: b.tree.jstree is not a function
at g.b.destroy (ngJsTree.min.js:1)
at Object.fn (ngJsTree.min.js:1)
at g.$digest (angular.js:11623)
at a.$apply (angular.js:11870)
at HTMLButtonElement. (angular.js:17434)
at angular.js:2382
at r (angular.js:332)
at HTMLButtonElement.c (angular.js:2383)

and when I refresh the page , it's OK.

2- the second problem is that , when I close the modal an reopen it in multiple times , during the time of dnd , I have the error below.

menuManagerController.js:368 Uncaught TypeError: $scope.treeInstance.jstree(...).get_json is not a function
at HTMLDocument. (menuManagerController.js:368)
at HTMLDocument.dispatch (jquery-1.11.0.min.js:3)
at HTMLDocument.r.handle (jquery-1.11.0.min.js:3)
at Object.trigger (jquery-1.11.0.min.js:3)
at m.fn.init.triggerHandler (jquery-1.11.0.min.js:3)
at Object._trigger (jstree.js:6899)
at HTMLDocument.stop (jstree.js:7118)
at HTMLDocument.dispatch (jquery-1.11.0.min.js:3)
at HTMLDocument.r.handle (jquery-1.11.0.min.js:3)

I will be pleased if you help me.

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