Skip to content

Commit

Permalink
fix(select-filter): select lists should not display an empty and '-' …
Browse files Browse the repository at this point in the history
…option

For a demo on what this change will look like see the pull request:

#654 (comment)
  • Loading branch information
ccrowhurstram committed Aug 3, 2015
1 parent 3eed371 commit 1ee441b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ng-table/filters/select.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
ng-model="params.filter()[name]"
ng-if="filter == 'select'"
class="filter filter-select form-control" name="{{name}}">
<option style="display:none" value=""></option>
</select>
2 changes: 1 addition & 1 deletion src/scripts/04-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function($scope, NgTableParams, $timeout, $parse, $compile, $attrs, $element, ng
data = [];
} else if (angular.isArray(data)) {
data.unshift({
title: '-',
title: '',
id: ''
});
}
Expand Down

0 comments on commit 1ee441b

Please sign in to comment.