angular-ui/ui-grid

Editing a cell with enableCellEditOnFocus: true, arrow keys navigate to another cell

Open

#6,835 创建于 2018年8月15日

在 GitHub 查看
 (2 评论) (1 反应) (0 负责人)JavaScript (2,496 fork)batch import
grid-edithelp wanted

仓库指标

Star
 (5,395 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

When using the enableCellEditOnFocus: true, when editing a cell in the text input, using the arrow keys should navigate between characters, but instead navigates to a different cell. This can be observed in the ui-grid tutorial example for cell edit at http://ui-grid.info/docs/#!/tutorial/Tutorial:%20301%20Edit%20On%20Focus

I'll provide my ui-grid config just for clarity, but since the provided tutorial example suffers from the same bug, this seems to be a global issue.

const gridOptions = {
    enableSorting: false,
    enableFiltering: false,
    enableRowSelection: true,
    enableRowHeaderSelection: true,
    enableSelectAll: true,
    multiSelect: true,
    noUnselect: false,
    enableCellEdit: true,
    enableCellEditOnFocus: true
};

贡献者指南