-
Notifications
You must be signed in to change notification settings - Fork 3.4k
ui-sref on md-tab no longer works #2344
Comments
+1 |
Yes we are having same issue since upgrading to 0.9.0-rc1. This fix is necessary for Tabs with external view content to work. |
@DBGTTECHJAM - agreed. Support for external view content is very important. |
I am able to replicate the problem as well. I created a plunker to replicate the problem: http://plnkr.co/edit/t0QmjueSGcNfFLG8U0n2?p=info I first got it working with angular-material 0.8.3 and then switched to 0.9.0-rc1 in order to replicate the issue. This is my first time getting involved so please let me know if additional info is necessary... and thank you for the great libraries. |
+1 |
+1 The following use to work quite nicely
But now I have to use the following(note the ui-sref must be on an element within md-tab-label`
|
+1 for the workaround. Guess I'll have to go with that for now. |
Thanks for the workaround. |
+1 |
you can also try adding something like { padding: 15px; margin: -15px; } on the label so that the lnk works for the whole tab and not only the text. yeah, don't judge me. |
@loykianos - LOL. |
Side note: The workaround does not solve keyboard navigation. |
+1 for making tabs work with any route persistancy that a user would open a specific tab on historyBack() |
+1 |
1 similar comment
+1 |
i am using this code.
Its working fine, till now. |
@rosinghal - can you provide a CodePen that we can quickly use to test and validate fixes? |
+1 |
1 similar comment
+1 |
When you try to activate a state "settings" via a navbar button then the "settings" Tab is not activated. I have extra to click on that Tab. This should be fixed too. And the workaround from @epelc does NOT work see the plunker with latest version 0.9.4 |
Thanks for the workaround!!! |
@bastienJS: It seems your ui-view structure is not working for some reason. I simplified your plunker by removing the named views inside the tabs and the workaround by @epelc works just fine: http://plnkr.co/edit/WVsbSHfplx82FXywYq2G |
@osuritz is right about the keyboard navigation not syncing when using ui-sref. His proposed fix works as well. I am having the same problem. Going to open a separate issue since this one is closed already. |
@robertmesserle: see @osuritz comment above ^^. |
I was able to fix this by using ng-click and then changing the $location with a function:
With:
And route .state data:
|
I am facing the same Keyboard navigation issue (The tab content does not change with keyboard 'enter'/'space' with 'ui-sref'). No workaround is working for me as well. Any updates as to when will this be fixed? |
+1 |
This used to work in 0.8.0:
It no longer works as of 0.9.0-rc1. It seems extra attributes are being stripped off of these directives.
The text was updated successfully, but these errors were encountered: