diff --git a/src/app/components/pab-table/pab-table.component.html b/src/app/components/pab-table/pab-table.component.html index ea78638332c644a79a2e3cc3a4d21024e0b26b09..93864ec7b69efc4a816a047dcdc6d7d11800df14 100644 --- a/src/app/components/pab-table/pab-table.component.html +++ b/src/app/components/pab-table/pab-table.component.html @@ -74,14 +74,14 @@ [ngClass]="cell.class" [class.editable-cell]="hasModel(cell)" [class.readonly-cell]="! hasModel(cell)" [class.selectable-cell]="isSelectable(cell)" [class.selected-cell]="isSelected(cell) && ! isSelected(row)" - [class.invalid-cell]="isInvalid(cell)" + [class.invalid-cell]="isInvalid(cell)" [class.select]="isSelect(cell)" [attr.rowspan]="rowSpan(cell)" [attr.colspan]="colSpan(cell)" [title]="cellTitle(cell)"> <input matInput *ngIf="isNumberInput(cell)" step="0.00000000000001" type="number" [(ngModel)]="cell.model.singleValue" (input)="inputValueChanged($event, cell)"> - <mat-select *ngIf="isSelect(cell)" [value]="cell.modelValue" + <mat-select #selectWidget *ngIf="isSelect(cell)" [value]="cell.modelValue" (selectionChange)="loiDebitSelected($event, cell)"> <mat-option *ngFor="let opt of cell.options" [value]="opt.value"> diff --git a/src/app/components/pab-table/pab-table.component.scss b/src/app/components/pab-table/pab-table.component.scss index d8beccf903f460dc26b4cca119a69a3fc7552542..3f27ab369593e68ad608eac5d927aa51e326d40b 100644 --- a/src/app/components/pab-table/pab-table.component.scss +++ b/src/app/components/pab-table/pab-table.component.scss @@ -110,6 +110,9 @@ mat-card-content { > input.mat-input-element { padding: 4px 8px; } + &:focus-within { + @extend .bg-warn-extralight; + } } &.selectable-cell { cursor: pointer; diff --git a/src/app/components/pab-table/pab-table.component.ts b/src/app/components/pab-table/pab-table.component.ts index 8058576ef091e695b5793678cb61b3fbc0ae9a4f..cf4561da10fcce41d95e7ab5b6cfad5a9c1e0a81 100644 --- a/src/app/components/pab-table/pab-table.component.ts +++ b/src/app/components/pab-table/pab-table.component.ts @@ -1007,7 +1007,6 @@ export class PabTableComponent implements AfterViewInit, OnInit { /** Replace device Nub when LoiDebit is changed */ public loiDebitSelected($event: any, cell: any) { const device = cell.model as Nub; - const pos = device.findPositionInParent(); // create new child device const newDevice = Session.getInstance().createNub( new Props({