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 5ed9372 commit ea72fadCopy full SHA for ea72fad
src/dropdown/sm-dropdown.js
@@ -135,7 +135,8 @@
135
// in the items, the appropriate item's label is displayed. Otherwise return the default text.
136
$scope.getDefaultText = function()
137
{
138
- return ( $scope.isEmpty() ? $scope.defaultText : '' );
+ var defaultText = $scope.defaultText ? $scope.defaultText : '';
139
+ return ( $scope.isEmpty() ? defaultText : $scope.findMatchingItem($scope.model) );
140
};
141
142
// Finds an item instance that has the exact same value as the given value.
0 commit comments