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
EDIT: Wasn't the line I thought it was, but something is very off.
Whenever anything in my app updates that has some distant binding to the dropdown, the dropdown closes without firing closeMenu.
It seems that the link function on the directive is called every time something happens within any sort of scope with it, because of how bindings work... and this is calling the following line:
if(dropdown) {
dropdown.css('display', 'none');
}
The text was updated successfully, but these errors were encountered:
BenWoodford
changed the title
Dropdowns close when anything updates
Dropdowns close when anything vaguely bound to it updates
Mar 16, 2016
Bear with me, I'm actually not entirely sure what it was causing the link to be called whenever something updated. Trying to repeat it in Plunker without much luck... From what I've read link is called every time the scope changes, which means the dropdown closes itself when something in scope changes... just not sure how to replicate that right now.
EDIT: Wasn't the line I thought it was, but something is very off.
Whenever anything in my app updates that has some distant binding to the dropdown, the dropdown closes without firing closeMenu.
It seems that the link function on the directive is called every time something happens within any sort of scope with it, because of how bindings work... and this is calling the following line:
The text was updated successfully, but these errors were encountered: