-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tab for current route not set to active using Bootstrap.UI 1.2.4 #70
Comments
Yep, looks like there's a bit of work to do with this new version of Bootstrap.UI. |
Having the same issue, using Bootstrap UI 1.2.1. |
I have the same issue with Bootstrap UI 1.2.2. It seems Bootstrap UI moved the active-attribute to the uib-tabset element, and the value of it should be the active tab index. |
Close to presenting a fix now but it breaks the tests for $stateChangeStart cancel that still routes. Cannot see why my code would break that, so it's probably something with the UI-update. No more time to spend on it at the moment, though... :/ |
Can't do much with a zip, presenting a branch from your repo (forked from this) would have been a better way to go. |
Yeah, sorry about that. Will see if I can get some time to do this better. |
Please test out using the master branch, if it's all good I will release it. |
As Bootstrap UI moved the active attribute to the uib-tabset element (thanks primavera133!), a patch to ui-router-tabs.js that works for me is:
and then use 'active=tabs.active' in the template:
|
Thanks for the suggestion, am working to release a new version this week. |
Released v2.0.0, feel free to raise any issues against it. |
The latest version of Bootstrap.UI 1.2.4 breaks the functionality setting the tab matching the current route. Works with previous version Bootstrap.UI 1.2.
I have stepped though the ui-router-tabs.js, and isAncestorOfCurrentRoute is being set to true for the correct tab, although when the page finishes loading, the first tab is always set to active.
The text was updated successfully, but these errors were encountered: