Call ModelView base init after view init (#13261)

* Call ModelView base init after view init

* baseInit to end
This commit is contained in:
Charles Gagnon
2020-11-07 09:41:49 -08:00
committed by GitHub
parent 5e00dcb78c
commit 8b73391845
33 changed files with 43 additions and 116 deletions

View File

@@ -37,11 +37,6 @@ export default class CheckBoxComponent extends ComponentBase<azdata.CheckBoxProp
super(changeRef, el);
}
ngOnInit(): void {
this.baseInit();
}
ngAfterViewInit(): void {
if (this._inputContainer) {
let inputOptions: ICheckboxOptions = {
@@ -62,6 +57,7 @@ export default class CheckBoxComponent extends ComponentBase<azdata.CheckBoxProp
this._register(attachCheckboxStyler(this._input, this.themeService));
this._validations.push(() => !this.required || this.checked);
}
this.baseInit();
}
ngOnDestroy(): void {