remove data- attribute fallback for states

This commit is contained in:
Cory LaViska
2024-12-17 11:13:20 -05:00
parent 5d687f1aa0
commit 0bcc788752

View File

@@ -497,8 +497,6 @@ export class WebAwesomeFormAssociatedElement
(this.internals.states as Set<string>).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<string>).delete(state);
} catch (_) {
// Without this, test suite errors.
} finally {
this.removeAttribute(`data-wa-${state}`);
}
}