diff --git a/contact-us/contact-us.component.html b/contact-us/contact-us.component.html index 9fdaa0a2..d63cfd4d 100644 --- a/contact-us/contact-us.component.html +++ b/contact-us/contact-us.component.html @@ -54,14 +54,10 @@
Organization Type *
- - - - {{option}} - - +
Subject *
diff --git a/contact-us/contact-us.component.ts b/contact-us/contact-us.component.ts index 084a3782..81b8b40a 100644 --- a/contact-us/contact-us.component.ts +++ b/contact-us/contact-us.component.ts @@ -10,7 +10,7 @@ import {map, startWith} from "rxjs/operators"; styleUrls: ['contact-us.component.css'] }) -export class ContactUsComponent implements OnInit { +export class ContactUsComponent { @Input() public contactForm: FormGroup; @Input() formTitle: string; @@ -23,25 +23,6 @@ export class ContactUsComponent implements OnInit { public right: boolean = true; @Input() public buttonClass: string; - public autoCompleteTypes: Observable; - - constructor() { - } - - ngOnInit() { - if(this.contactForm.get('organizationType')) { - this.autoCompleteTypes = this.contactForm.get('organizationType').valueChanges - .pipe( - startWith(''), - map(value => this._filter(value)) - ); - } - } - - private _filter(value: string): string[] { - const filterValue = value.toLowerCase(); - return this.organizationTypes.filter(option => option.toLowerCase().includes(filterValue)); - } public send() { this.sendEmitter.emit({