material icon indicating copy to clipboard operation
material copied to clipboard

Navigating away from md-tabs triggers md-on-select

Open omida86 opened this issue 11 years ago • 8 comments

In 0.9.7, every time I navigate away from a page that contains md-tabs using ng-click, it triggers "md-on-select".

Example at: http://plnkr.co/edit/zjuxgnB5z94s001Q63fQ?p=preview

omida86 avatar Jun 03 '15 11:06 omida86

This does not happen if I change tab.

omida86 avatar Jun 03 '15 12:06 omida86

I'm experiencing this issue as well.

It seems to be caused by this line: https://github.com/angular/material/blame/6c53d1127fc1cb7d2a86802e5831642a40ff1e41/src/components/tabs/js/tabsController.js#L184

Which was changed in relation to https://github.com/angular/material/issues/2837

That removeTab call is made, at least in my case, from here https://github.com/angular/material/blame/91576d0e7d7d1791e3688ba6ceac9a0750ea9e24/src/components/tabs/js/tabDirective.js#L127

If the tabs directive is being destroyed, we shouldn't care about selected tabs being changed I would assume.

andrewburgess avatar Jun 03 '15 17:06 andrewburgess

Having the same here!

shprink avatar Jun 04 '15 17:06 shprink

Same issue here

nvb avatar Jun 05 '15 21:06 nvb

facing same issue.

Praggie avatar Jun 06 '15 05:06 Praggie

+1 Happens in 0.9.7 but okay in 0.9.6.

jaytula avatar Jun 07 '15 02:06 jaytula

+1 0.9.8-rc1 I'm downgrading to 0.9.6 until this is fixed.

JalalAlbasri avatar Jun 08 '15 13:06 JalalAlbasri

This is resolved in 0.9.8 and higher. Closing for now, please respond with browser details if you are experiencing it past 0.9.8.

@CavemanNinja Unfortunately, the fix was added just after RC1, but it should be good in 0.9.8.

robertmesserle avatar Jun 09 '15 06:06 robertmesserle