Skip to content

Commit

Permalink
batch-fixes-4-dec
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Dec 5, 2023
1 parent a20c698 commit 4dff06e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/app/register2/components/BaseForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export abstract class BaseForm implements ControlValueAccessor, AsyncValidator {
public onTouchedFunction
constructor() {}
writeValue(val: any): void {
console.log('writeValue', val)
if (val != null && val !== undefined && val !== '') {
this.form.setValue(val, { emitEvent: true })
// Trigger registerOnChange custom function by calling form.updateValueAndValidity
Expand Down
3 changes: 2 additions & 1 deletion src/app/register2/pages/register/register2.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#stepper
labelPosition="bottom"
class="orcid-stepper-wizard"
(selectionChange)="selectionChange($event)"
>
<mat-step [stepControl]="FormGroupStepA">
<ng-template matStepLabel i18n="@@register.personalData"
Expand Down Expand Up @@ -46,7 +47,7 @@
>Visibility and terms</ng-template
>
<app-step-d
#stepComponentC
#stepComponentD
[(formGroup)]="FormGroupStepD"
(submit)="register()"
[loading]="loading"
Expand Down
5 changes: 5 additions & 0 deletions src/app/register2/pages/register/register2.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ export class Register2Component implements OnInit, AfterViewInit {
}
}
}
selectionChange(event: StepperSelectionEvent) {
if (this.platform.columns4 || this.platform.columns8) {
this.focusCurrentStep(event)
}
}

// Fix to material vertical stepper not focusing current header
// related issue https://github.com/angular/components/issues/8881
Expand Down

0 comments on commit 4dff06e

Please sign in to comment.