From 47580c55160c3c851fc154fc6c29e866f014030c Mon Sep 17 00:00:00 2001 From: konnorrogers Date: Fri, 21 Nov 2025 18:14:03 -0500 Subject: [PATCH] prettier --- packages/webawesome/src/components/button/button.ts | 2 +- .../internal/webawesome-form-associated-element.ts | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/webawesome/src/components/button/button.ts b/packages/webawesome/src/components/button/button.ts index 0b1b7256f..1cdb52121 100644 --- a/packages/webawesome/src/components/button/button.ts +++ b/packages/webawesome/src/components/button/button.ts @@ -136,7 +136,7 @@ export default class WaButton extends WebAwesomeFormAssociatedElement { const button = document.createElement('button'); for (const attribute of this.attributes) { - button.setAttribute(attribute.name, attribute.value) + button.setAttribute(attribute.name, attribute.value); } button.type = this.type; diff --git a/packages/webawesome/src/internal/webawesome-form-associated-element.ts b/packages/webawesome/src/internal/webawesome-form-associated-element.ts index d8d64a8c1..440f13aee 100644 --- a/packages/webawesome/src/internal/webawesome-form-associated-element.ts +++ b/packages/webawesome/src/internal/webawesome-form-associated-element.ts @@ -209,19 +209,18 @@ export class WebAwesomeFormAssociatedElement * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in * the same document or shadow root for this to work. */ - set form (val: string) { + set form(val: string) { if (val) { - this.setAttribute("form", val) + this.setAttribute('form', val); } else { - this.removeAttribute("form") + this.removeAttribute('form'); } } - get form (): HTMLFormElement | null { - return this.internals.form + get form(): HTMLFormElement | null { + return this.internals.form; } - @property({ attribute: false, state: true, type: Object }) get validity() { return this.internals.validity;