From dd50dde51d19e27a64eee633e02260dded5c31dd Mon Sep 17 00:00:00 2001 From: Konnor Rogers Date: Sun, 14 Dec 2025 18:50:55 -0500 Subject: [PATCH] prettier --- .../internal/webawesome-form-associated-element.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/webawesome/src/internal/webawesome-form-associated-element.ts b/packages/webawesome/src/internal/webawesome-form-associated-element.ts index 2829c64db..23db8533a 100644 --- a/packages/webawesome/src/internal/webawesome-form-associated-element.ts +++ b/packages/webawesome/src/internal/webawesome-form-associated-element.ts @@ -302,20 +302,20 @@ export class WebAwesomeFormAssociatedElement formStateRestoreCallback(state: string | File | FormData | null, reason: 'autocomplete' | 'restore') { if (state instanceof FormData) { // When we get FormData (like in Firefox) we need to need to make sure we match the value + element. - const form = this.getForm() + const form = this.getForm(); if (form) { const index = Array.from(form.elements) // Filter first so we can find the index of our element in respect to other elements with the same name. - .filter((el) => { + .filter(el => { // @ts-expect-error - return this.name && el.name && el.name === this.name - }) - .findIndex((el) => { - return el === this + return this.name && el.name && el.name === this.name; }) + .findIndex(el => { + return el === this; + }); if (index >= 0) { // @ts-expect-error We purposely do not have a value property. It makes things hard to extend. - this.value = state.getAll(this.name)[index] + this.value = state.getAll(this.name)[index]; } } } else {