Skip to content

$scope.tabContainer is null #60

@omril1

Description

@omril1

Sometimes the $scope.init function runs before the uib-tabset directive finished rendering into the DOM, so the querySelector returns null.
$el[0].querySelector('.spacer ul.nav-tabs');

I temporarily fixed it in my code by setting in a delay for the init function.
ex:

$timeout(function(){
     $scope.init();
 }, 100);

Is there a better solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions