Skip to content

Commit

Permalink
fix: fixed the parent event name
Browse files Browse the repository at this point in the history
  • Loading branch information
kobezzza authored and shining-mind committed Jun 13, 2024
1 parent 80cebb7 commit c0fa91f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/component/init/states/created.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ export function createdState(component: ComponentInterface): void {
onActivation(normalParent.hook);
}

normalParent.$on('on-hook-change', onActivation);
$a.worker(() => normalParent.$off('on-hook-change', onActivation));
normalParent.$on('onHookChange', onActivation);
$a.worker(() => normalParent.$off('onHookChange', onActivation));
}
}

Expand Down

0 comments on commit c0fa91f

Please sign in to comment.