Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sinwoobang opened this issue Nov 6, 2020 · 2 comments
Open

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

sinwoobang opened this issue Nov 6, 2020 · 2 comments

Comments

@sinwoobang
Copy link

sinwoobang commented Nov 6, 2020

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
Copy link
Author

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

@avallete
Copy link
Owner

avallete commented Apr 18, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants