Skip to content

Commit

Permalink
Add scrollLeft on input leave and adjust padding
Browse files Browse the repository at this point in the history
  • Loading branch information
lkleisa committed May 24, 2024
1 parent c3f2920 commit bfb1157
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
[matAutocomplete]="auto"
(input)="filter()"
(focus)="filter(); input.select()"
(focusout)="scrollLeft()"
[value]="displayedValue"
/>
<mat-autocomplete requireSelection #auto="matAutocomplete" [displayWith]="displayWith">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

.alignment-input {
border: solid 1px #909090;
padding: 0.44rem 0.625rem 0.375rem 0.625rem;
padding: 0.44rem 0.625rem 0.375rem 0.625rem !important;
cursor: pointer;
height: 1.18rem;
box-sizing: content-box;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,5 +360,9 @@ export class ObjectiveFormComponent implements OnInit {
}
}

scrollLeft() {
this.input.nativeElement.scrollLeft = 0;
}

protected readonly getQuarterLabel = getQuarterLabel;
}

0 comments on commit bfb1157

Please sign in to comment.