Skip to content

Commit 1ce8866

Browse files
author
ngx-lib
authored
Merge pull request #129 from ngx-lib/ivy-compilation-issue
Fixed.
2 parents e878fa7 + 2d211fc commit 1ce8866

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,9 @@ None
3838
## Bugfix
3939

4040
- Fixes #113 - Issue implementing multiselect in angular 9, text values in the dropdown list are empty.
41+
42+
# 1.0.6 (2020-13-19)
43+
44+
## Bugfix
45+
46+
- Changed `defaultOptionsTemplate` ViewChild query to `{ static: true }`.

angular.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,5 +165,8 @@
165165
}
166166
}
167167
},
168-
"defaultProject": "ngx-multiselect"
168+
"defaultProject": "ngx-multiselect",
169+
"cli": {
170+
"analytics": "f38b24e8-f689-4fde-96cc-2821b4dea14a"
171+
}
169172
}

projects/multiselect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngx-lib/multiselect",
3-
"version": "1.0.4",
3+
"version": "1.0.6",
44
"license": "MIT",
55
"keywords": [
66
"angular",

projects/multiselect/src/lib/grouped-options/grouped-options.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class GroupedOptionsComponent implements OnInit, OnChanges {
4444
@Output() selectGroup = new EventEmitter<any>();
4545
@Output() selectOption = new EventEmitter<any>();
4646

47-
@ViewChild('defaultOptionsTemplate') defaultOptionsTemplate: TemplateRef<any>;
47+
@ViewChild('defaultOptionsTemplate', { static: true }) defaultOptionsTemplate: TemplateRef<any>;
4848

4949
constructor(public multiselectService: NgxMultiselectService) {}
5050

projects/multiselect/src/lib/multiselect.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export class NgxMultiselectComponent implements ControlValueAccessor {
4444
private operationPendingQueue: any[] = [];
4545

4646
// public variables
47-
_optionsTemplate: TemplateRef<any>;
4847
_selectedOptions: any | any[] = null;
4948
_defaultPropertyMap = {
5049
id: 'id',
@@ -64,7 +63,7 @@ export class NgxMultiselectComponent implements ControlValueAccessor {
6463
@Input() showHelperElements: boolean = true;
6564
@Input() showSearchFilter: boolean = true;
6665
@Input() showMaxLabels: number = 3;
67-
@ContentChild(TemplateRef)
66+
@ContentChild(TemplateRef) _optionsTemplate: TemplateRef<any>;
6867
@Input()
6968
get optionsTemplate() {
7069
return this._optionsTemplate;

projects/multiselect/src/lib/options/options.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class OptionsComponent implements OnInit, OnChanges {
3434
end: number = 5;
3535
filteredOptions;
3636

37-
@ViewChild('defaultOptionsTemplate') defaultOptionsTemplate: TemplateRef<any>;
37+
@ViewChild('defaultOptionsTemplate', { static: true }) defaultOptionsTemplate: TemplateRef<any>;
3838

3939
constructor() {}
4040

0 commit comments

Comments
 (0)