igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

Active cell border moves to difference cell

Open ymita opened this issue 6 years ago • 3 comments

Description

Active cell border moves to difference cell when igxFocus is applied to the cell edit template.

  • igniteui-angular version: 9.0.1
  • browser: IE11

Steps to reproduce

  1. Run the attached sample
  2. Start editing on either 'id' column or 'name' column
  3. While the cell is in edit mode, scroll quickly several times

Result

Active cell border moves to other cell.

Expected result

Active cell border stays at the cell which is in edit mode.

Note

Active cell keeps moving while scroll is performed on vertical scroll bar. If scroll is performed on the grid cell, active cell is reset.

Attachments

IgxGrid_Cell_Active_Color igx-grid-active-cell-color.zip

ymita avatar Feb 18 '20 07:02 ymita

If a workaround is available, would you share it please?

ymita avatar Feb 18 '20 07:02 ymita

Hello @ymita , When you have custom cell template you should handle some logic and operations manually. One possible workaround for the described scenario is to bind the IgxFocus directive to cell.focused property or to implement custom logic and set focus to the input in the cell editing template only when the cell is fully visible. <ng-template igxCellEditor let-cell="cell" let-value> <igx-input-group> <input igxInput type="text" [(ngModel)]='cell.editValue' [igxFocus]="cell.focused" /> </igx-input-group> </ng-template>

ddincheva avatar Feb 19 '20 09:02 ddincheva

@ddincheva Thank you for the solution. I see how to use it in this case. This is very helpful.

ymita avatar Feb 20 '20 04:02 ymita