ag-grid-autocomplete-editor
ag-grid-autocomplete-editor copied to clipboard
Pressing Enter doesn't work in the cells in the same column.
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.
The same thing happened at Tab, couldn't find a solution yet.
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.