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
public nodeSelected = (items) => {
if (items.nodes.length) {
this.selected = items.nodes[0];
} else {
this.selected = null;
};
};
If i display the selected like this:
<pre ng-bind="$ctrl.selected | json"></pre>
It updates the selected if the 'selectNode' is triggered, but not when the 'deselectNode' is triggered, only after a new digest cycle. The current workaround I implemented is this:
I found a similar problem with the stabilizationDone callback. The following does not always trigger the $watchCollection for the options field. However, sometimes it is triggered quite late. I try to provide a JSBin.
Hi,
At least the 'deselectNode' occurs outside angular's digest cycle (maybe more).
I have this (stripped) setup:
The 'nodeSelected' roughly looks like this:
If i display the selected like this:
It updates the selected if the 'selectNode' is triggered, but not when the 'deselectNode' is triggered, only after a new digest cycle. The current workaround I implemented is this:
What causes this issue?
The text was updated successfully, but these errors were encountered: