From 30edf1bd9871cc11d2871fbc524af5cd8b18e191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E7=93=9C=E4=B8=B8?= Date: Thu, 17 Dec 2020 22:49:49 +0900 Subject: [PATCH] [fix] --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 48cbd6f..1c59d8a 100644 --- a/main.js +++ b/main.js @@ -103,7 +103,8 @@ export class Component extends HTMLElement{ return []; } async connectedCallback(){ - this.dispatcher('init'); + await this.dispatcher('init'); + if(this.afterFirstUpdate) this.afterFirstUpdate(); } setContext(template) { const walker = document.createTreeWalker(template);