You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using selection to display default selected values when page loads for the first time. When user manually changes the selected nodes on the tree, itemSelected is called which calls onSelectionChanged. The watch on selection is triggered as both are bound to same variable. This in turn calls itemSelected and so on. The code goes into an infinite loop and the web page freezes. Is there a solution to the problem?
The text was updated successfully, but these errors were encountered:
Hmm that is weird.I'd look at the hierarchical-selector directive, and see what it is doing with the attributes. I think it wants onSelectionChange to be a function...
What happens if you change onSelectionChanged to a function on the scope and in the function assigned the value?
I am facing an issue when i bind selection and onSelectionChanged to same scope variable. For Example,
I am using selection to display default selected values when page loads for the first time. When user manually changes the selected nodes on the tree, itemSelected is called which calls onSelectionChanged. The watch on selection is triggered as both are bound to same variable. This in turn calls itemSelected and so on. The code goes into an infinite loop and the web page freezes. Is there a solution to the problem?
The text was updated successfully, but these errors were encountered: