Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(filters): move responsibility for adding empty data item int…
…o select.html template Adding an empty option to the array returned by `$column.filterData` only makes sense when using that array as the datasource for the `select.hmtl` template. Therefore the responsibility for doing this should be moved into this template. This allows the `$column.filterData` to provide a suitable datasource for custom templates that might not want an empty option. This commit also fixes a problem where `$column.filterData` is used in more than one ngTable. In this scenario duplicate empty items would be added to the array. BREAKING CHANGE: `ngTableController` no longer adds an empty item to the array returned by `$column.filterData`. This will only affect those apps that were using `$column.filterData` to supply data to a *custom* filter template. Those apps that are using the `select.html` will be unaffected as the `select.html` filter will add this empty item.
- Loading branch information