From 7ae4cbb61c2fea98f36da8f4096ffb279ccb5c2d Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Mon, 8 Jul 2019 07:03:50 -0700 Subject: [PATCH] LP1830432: Use a stub callback with registerOnTouched Signed-off-by: Jane Sandberg Signed-off-by: Bill Erickson --- .../org-family-select.component.html | 4 ++-- .../org-family-select.component.ts | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/share/org-family-select/org-family-select.component.html b/Open-ILS/src/eg2/src/app/share/org-family-select/org-family-select.component.html index 3134751..b9bdf02 100644 --- a/Open-ILS/src/eg2/src/app/share/org-family-select/org-family-select.component.html +++ b/Open-ILS/src/eg2/src/app/share/org-family-select/org-family-select.component.html @@ -12,14 +12,14 @@
diff --git a/Open-ILS/src/eg2/src/app/share/org-family-select/org-family-select.component.ts b/Open-ILS/src/eg2/src/app/share/org-family-select/org-family-select.component.ts index 3e1e6e8..bf10232 100644 --- a/Open-ILS/src/eg2/src/app/share/org-family-select/org-family-select.component.ts +++ b/Open-ILS/src/eg2/src/app/share/org-family-select/org-family-select.component.ts @@ -61,6 +61,7 @@ export class OrgFamilySelectComponent implements ControlValueAccessor, OnInit { familySelectors: FormGroup; propagateChange = (_: OrgFamily) => {}; + propagateTouch = () => {}; constructor( private auth: AuthService, @@ -138,7 +139,9 @@ export class OrgFamilySelectComponent implements ControlValueAccessor, OnInit { this.propagateChange = fn; } - registerOnTouched() {} + registerOnTouched(fn) { + this.propagateTouch = fn; + } disableAncestorSelector(): boolean { return this.options.primaryOrgId === this.org.root().id(); -- 1.7.2.5