mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-26 22:01:32 +01:00
element array instead of node list
This commit is contained in:
parent
22c12cf5c4
commit
66b3dbae17
@ -10,14 +10,14 @@ import {
|
||||
})
|
||||
export class BoxRowDirective implements OnInit {
|
||||
el: HTMLElement = null;
|
||||
formEls: NodeListOf<Element>;
|
||||
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');
|
||||
|
Loading…
Reference in New Issue
Block a user