Open wkjesus opened 7 years ago
Hi, there's a pull request that solves this in a more elegant way. check it out: https://github.com/sykes10/bootstrap/commit/6a9c72a6a194d58d3d2850c2cefa0f4c839f9f1c
lol i suggested that solution in stackoverflow for the user who post the issue .lol but great if fixed.
It's me. 😁😁😁 On Fri, 28 Jul 2017 at 20:00, wkJesus notifications@github.com wrote:
lol i suggested that solution in stackoverflow for the user who post the issue .lol but great if fixed.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/angular-ui/bootstrap/issues/6605#issuecomment-318722366, or mute the thread https://github.com/notifications/unsubscribe-auth/AKFp2BRNznFxIDhybYHNHKx2LlKgoZeeks5sSiG6gaJpZM4OllpH .
Bug description:
i was looking on the code and detect that the attribute showSpinners, only work when load the directive, and is unable to trigger dinamically with click from a button or else, i do some hack
and put this code
$scope.showSpinners = timepickerConfig.showSpinners; if ($attrs.showSpinners) { watchers.push($scope.$parent.$watch($parse($attrs.showSpinners), function(value) { $scope.showSpinners = !!value;
} /$scope.showSpinners = angular.isDefined($attrs.showSpinners) ? $scope.$parent.$eval($attrs.showSpinners) : timepickerConfig.showSpinners;/
and work like a charm.
i know this is not the best solution, i hope theres is a better one that can use provider from this comunity. Greetings.