From 66b3dbae177a795d6b5168f7cdbba2f98f309272 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 5 Jun 2018 13:28:09 -0400 Subject: [PATCH] element array instead of node list --- src/angular/directives/box-row.directive.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/angular/directives/box-row.directive.ts b/src/angular/directives/box-row.directive.ts index 241a5b3f82..8269a46b64 100644 --- a/src/angular/directives/box-row.directive.ts +++ b/src/angular/directives/box-row.directive.ts @@ -10,14 +10,14 @@ import { }) export class BoxRowDirective implements OnInit { el: HTMLElement = null; - formEls: NodeListOf; + formEls: Element[]; constructor(private elRef: ElementRef) { this.el = elRef.nativeElement; } ngOnInit(): void { - this.formEls = this.el.querySelectorAll('input:not([type="hidden"]), select, textarea'); + this.formEls = Array.from(this.el.querySelectorAll('input:not([type="hidden"]), select, textarea')); this.formEls.forEach((formEl) => { formEl.addEventListener('focus', (event: Event) => { this.el.classList.add('active');