I have a weird bug in my AngularJS application. I have a form, in which I have an select-block, where i can choose an item. So I choose an item and click "Save". Now when I select another item in the same block, as soon as I click anywhere on the screen it will change it back to the value before.
Scenario:
- Select Item A from Dropdown --> Item A selected
- Select Item B from Dropdown --> Item B selected
- Click anywhere on the screen --> Item A selected again
So I need to investigate where in my code the change is being made. So I decided to use scope.$watch()
and set a Breakpoint in it. However this now only shows me the Angular Library in the callstack and the $digest cycle. But nothing from my code.
Now how can I approach this? Is there another trick to see, why my application is resetting the value after I click anywhere?