Skip to content

Commit

Permalink
Fixed #9985 - Changing captcha language does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Mar 11, 2021
1 parent d71cc20 commit 0f2ae42
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/app/components/captcha/captcha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export class Captcha implements AfterViewInit,OnDestroy {
@Input() size = 'normal';

@Input() tabindex = 0;

@Input() language: string = null;

@Input() initCallback = "initRecaptcha";

Expand All @@ -29,6 +27,18 @@ export class Captcha implements AfterViewInit,OnDestroy {

private _instance: any = null;

private _language: any = null;


@Input() get language(): string {
return this._language;
}

set language(language: string) {
this._language = language;
this.init();
}

constructor(public el: ElementRef, public _zone: NgZone, public cd: ChangeDetectorRef) {}

ngAfterViewInit() {
Expand Down

0 comments on commit 0f2ae42

Please sign in to comment.