-
Notifications
You must be signed in to change notification settings - Fork 6.7k
is-open of dropdowns is not working with dynamic (ng-repeat) tabs #3261
Comments
The problem lies in this condition : if ( openScope && openScope !== dropdownScope ) {
openScope.isOpen = false;
} https://github.com/angular-ui/bootstrap/blob/master/src/dropdown/dropdown.js#L16-L18 which always close the dropdown menu as soon it's opened. |
Would love to PR but don't know what problem bootstrap/src/dropdown/dropdown.js Lines 16 to 18 in f13ed0f
|
That is not the source of the problem - did some investigation, and it turns out the |
Elaborating further, this appears to be because of the tab component - the Here is a fork of the Plunker based off of |
I apologize, looks like my observation is incorrect - something really funky is going on. With each click, both dropdown buttons are toggling. |
@sagorshkov great catch - will open PR with fix shortly. |
I think the way I fixed it was this way for ng-repeat. when there is an
|
http://plnkr.co/edit/fhQrZWOyEjkjKcbiP78k
The is-open directive is not working if being placed into tabs generated by ng-repeat. It is working good within static tabs and outside tabs though.
The text was updated successfully, but these errors were encountered: