Skip to content

Commit

Permalink
chore: swap to using afterNextRender
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedHalat authored Sep 23, 2024
1 parent 4d2e171 commit ba0cab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-turnstile/src/lib/ngx-turnstile.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class NgxTurnstileComponent implements AfterViewInit, OnDestroy {
throw 'Version not defined in ngx-turnstile component.';
}

public ngAfterViewInit(): void {
public afterNextRender(): void {
let turnstileOptions: TurnstileOptions = {
sitekey: this.siteKey,
theme: this.theme,
Expand Down

0 comments on commit ba0cab5

Please sign in to comment.