Skip to content

Commit 0f410b3

Browse files
Merge pull request #29 from DoctorGester/patch-1
Fixed getDefaultText + value/label binding related exception
2 parents 8f42562 + 70f5d0a commit 0f410b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dropdown/sm-dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
$scope.getDefaultText = function()
137137
{
138138
var defaultText = $scope.defaultText ? $scope.defaultText : '';
139-
return ( $scope.isEmpty() ? defaultText : $scope.findMatchingItem($scope.model) );
139+
return ( $scope.isEmpty() ? defaultText : $scope.translateValue($scope.findMatchingItem($scope.model)) );
140140
};
141141

142142
// Finds an item instance that has the exact same value as the given value.

0 commit comments

Comments
 (0)