mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
skip style attr for button
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user