Issue with window.print() breaking tabs

Example

The below code causes Ionic Tabs to stop working… Can not see the reason…

<a href="#" class="fa fa-print fa-2x" ng-click="print('skills-print')"></a>

    $scope.print = function(section) {
        var printContents = document.getElementById(section).innerHTML;
        var originalContents = document.body.innerHTML;        
        document.body.innerHTML = printContents;
        window.print();
        document.body.innerHTML = originalContents;
    }