diff --git a/src/WebComponent.js b/src/WebComponent.js index 40ccffc..5f3c2fd 100644 --- a/src/WebComponent.js +++ b/src/WebComponent.js @@ -184,7 +184,10 @@ export class WebComponent extends HTMLElement { #initializeProps() { if (!this.#props) { const { ...clone } = this; - this.#props = new Proxy(clone, this.#handler(this.setAttribute)); + this.#props = new Proxy( + clone, + this.#handler((key, value) => this.setAttribute(key, value)) + ); } } }