We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f56a396 commit d9e0f48Copy full SHA for d9e0f48
src/rating/rating.js
@@ -28,11 +28,9 @@ angular.module('ui.bootstrap.rating', [])
28
$scope.range = angular.isDefined($attrs.ratingStates) ? this.createRateObjects(angular.copy($scope.$parent.$eval($attrs.ratingStates))): this.createRateObjects(new Array(this.maxRange));
29
30
$scope.rate = function(value) {
31
- if ( $scope.readonly || $scope.value === value) {
32
- return;
+ if ( $scope.value !== value && !$scope.readonly ) {
+ $scope.value = value;
33
}
34
-
35
- $scope.value = value;
36
};
37
38
$scope.enter = function(value) {
0 commit comments