skip style attr for button

This commit is contained in:
konnorrogers
2025-12-16 10:51:19 -05:00
parent 76e9c3fef4
commit 186dec73e7

View File

@@ -136,6 +136,10 @@ export default class WaButton extends WebAwesomeFormAssociatedElement {
const button = document.createElement('button');
for (const attribute of this.attributes) {
if (attribute.name === "style") {
// Skip style attributes as they *shouldn't* be necessary
continue
}
button.setAttribute(attribute.name, attribute.value);
}