fix: illegal invocation
This commit is contained in:
parent
341424187b
commit
d54ff6fa94
1 changed files with 4 additions and 1 deletions
|
@ -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))
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue