From ce4bf92ce2733b3c7d8ece3f9acc8ca1e21ed2ee Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 20 Sep 2023 17:37:54 +0800 Subject: [PATCH] =?UTF-8?q?created=E5=9B=9E=E8=B0=83=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=BC=82=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 2268f1c..895dbe3 100644 --- a/src/index.js +++ b/src/index.js @@ -159,7 +159,7 @@ export class Component extends HTMLElement { this[__changed_props__].set(prop, this[prop]) } - this.created() + nextTick(_ => this.created()) } createProperty(name, options) {