Angular Bootstrap UI Firefox bug

Angular Bootstrap UI Firefox bug

by jacobwsmith

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.14.3/ui-bootstrap-tpls.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<div ng-controller="myCtrl">
    <div ng-repeat="item in list">
        <input ng-model="item" uib-popover="Select what question the user should be directed to when selecting this answer. If the poll should end when the user selects this answer, select &quot;Branch: End&quot;"/>
    </div>
</div>

CSS

html, body {
    margin: 10px;
}
input {
    margin: 5px;
}

JavaScript

var app = angular.module('app', ['ui.bootstrap']);

angular.module('app').controller('myCtrl', function ($scope) {
    $scope.list = [1,2,3,4,5,6,7,8,9];
}).config(['$tooltipProvider',
        function($tooltipProvider) {
            $tooltipProvider.options({
                placement: 'right',
                trigger: 'mouseenter',
                animation: false,
                popupDelay: 0,
                popupCloseDelay: 1, // <--- this fixes it
                appendToBody: true,
                popoverMode: 'single'
            });
        }
    ])