From 0bcc78875266ac952f3a9af539882c87701323cb Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 17 Dec 2024 11:13:20 -0500 Subject: [PATCH] remove data- attribute fallback for states --- src/internal/webawesome-element.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/internal/webawesome-element.ts b/src/internal/webawesome-element.ts index 17e2364ed..ec7311894 100644 --- a/src/internal/webawesome-element.ts +++ b/src/internal/webawesome-element.ts @@ -497,8 +497,6 @@ export class WebAwesomeFormAssociatedElement (this.internals.states as Set).add(state); } catch (_) { // Without this, test suite errors. - } finally { - this.setAttribute(`data-wa-${state}`, ''); } } @@ -507,8 +505,6 @@ export class WebAwesomeFormAssociatedElement (this.internals.states as Set).delete(state); } catch (_) { // Without this, test suite errors. - } finally { - this.removeAttribute(`data-wa-${state}`); } }