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

getNextTabbedCell ignores editable flag/callback #927

Closed
noherczeg opened this issue May 27, 2016 · 1 comment
Closed

getNextTabbedCell ignores editable flag/callback #927

noherczeg opened this issue May 27, 2016 · 1 comment

Comments

@noherczeg
Copy link

noherczeg commented May 27, 2016

When the code calls moveFocusToNextCell() in the row renderer it calls:

this.cellNavigationService.getNextTabbedCell(nextCell, shiftKey)

v4.1.5

This is not good because it after that calls getDisplayedColAfter() internally which ignores the editable flag/callback. The reason why this is bad is, that we can set that flag but it will ignore it therefore it will select the next cell no matter what.

@ceolter
Copy link
Contributor

ceolter commented Jun 1, 2016

maybe i don't understand, but if i do understand, then i think it's working as expected.

in moveFocusToNextCell here is this check:

if (startEditing && !nextRenderedCell.isCellEditable()) {
    continue;
}

in other words, the editable flag is checked only if we are trying to edit the cell.

so if you are in edit more, tab will move between editable cells.

if not in edit mode, then tab will go to all cells, as all cells can be focused if not editing.

if i got it wrong, then kindly explain and reopen the issue.

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