fix: illegal invocation

This commit is contained in:
Ayo 2023-11-18 23:30:56 +01:00
parent 341424187b
commit d54ff6fa94

View file

@ -184,7 +184,10 @@ export class WebComponent extends HTMLElement {
#initializeProps() { #initializeProps() {
if (!this.#props) { if (!this.#props) {
const { ...clone } = this; 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))
);
} }
} }
} }