ag-grid-autocomplete-editor icon indicating copy to clipboard operation
ag-grid-autocomplete-editor copied to clipboard

Pressing Enter doesn't work in the cells in the same column.

Open sinwoobang opened this issue 3 years ago • 2 comments

Hello, this library has saved my time a lot. I would like to appreciate your contribution before I report it.

I am using this library in a special case, which uses the autocomplete function only for the first row. In addition, I use ag-grid as row-based.

When I select a value in the first row, Enter and Tab don't work after the second row. I handled it by adding the below code to the table and now it works properly.

onCellKeyPress = ({ data, event }) => {
  if (data.field !== "exampleRowFirst" && event.keyCode === 13) {
    for (let cell of this.gridApi.getEditingCells()) {
      this.gridApi.stopEditing();
      this.gridApi.setFocusedCell(cell.rowIndex, cell.column.colId);
    }
  }
};

Thank you.

sinwoobang avatar Nov 06 '20 14:11 sinwoobang

The same thing happened at Tab, couldn't find a solution yet.

sinwoobang avatar Nov 06 '20 15:11 sinwoobang

In addition, I use ag-grid as row-based.

Could you elabore on this part ? Maybe an MWE could help me investigate this issue.

If you mean you use the Full Row Edit feature, it is intended that this editor (which inherit from PopupComponent) cannot work properly with this option, like any other Popup editor.

avallete avatar Apr 18 '21 10:04 avallete