Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

on select called when destroying tabs #437

Closed
superafroman opened this issue Oct 16, 2014 · 1 comment
Closed

on select called when destroying tabs #437

superafroman opened this issue Oct 16, 2014 · 1 comment

Comments

@superafroman
Copy link

material-tabs is set up with a tear down function $scope.$on('$destroy', ...) which removes all tabs. The removal process automatically selects another tab if there is one to select which triggers any selection functions bound to that tab. For my use case at least it would be better to suspend events when destroying the tabs.

@ajoslin
Copy link
Contributor

ajoslin commented Oct 16, 2014

Fixed. The tabs controller parent will remove all the tabs at once on destroy, with re-selection disabled.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants