Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
fix(quick-filter): Fixes default search in the quick-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
rowa-audil authored and nimrod13 committed Feb 15, 2021
1 parent 8388bd0 commit 69cd791
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/dev/src/quick-filter/quick-filter-demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ export class QuickFilterDemoComponent
searchValue = '';
_dataSource = new DtQuickFilterDefaultDataSource({
autocomplete: [
{
name: 'Value',
defaultSearch: true,
suggestions: [{ name: '1' }, { name: '2' }, { name: '3' }],
},
{
name: 'Value',
distinct: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ export class DtQuickFilterDefaultDataSource<
[],
data.validators,
isDefined(data.unique) ? data.unique! : false,
data.defaultSearch,
);
def.freeText!.suggestions = this.transformList(data.suggestions, def);
return def;
Expand Down

0 comments on commit 69cd791

Please sign in to comment.