Skip to content

Commit

Permalink
[fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
木瓜丸 committed Dec 17, 2020
1 parent 5453a01 commit 30edf1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 30edf1b

Please sign in to comment.