angular-ui/ui-grid

Celledit makes changes on all cells after edit and cellNav

Open

#5,742 创建于 2016年10月14日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)JavaScript (5,395 star) (2,496 fork)batch import
good first issue

描述

I have a grid with cellNav enabled. I also have the enableCellEditOnFocus and the cellTemplate set on 'ui-grid/cellEditor'

When I enter the cell and edit it, everything goes well. Then I tab to the next field and enter new text -> repeating these steps. Now, when you press leave the grid / unFocus the cells and you press another key on the keyboard (p) all the fields that you previously entered are filled with this value.

See plunker: http://plnkr.co/edit/3esyAJ05giDjjsETxjPT?p=preview

Steps:

  1. Enter field and start typing.
  2. Navigate to next few input fields by pressing the 'tab' key and enter a value
  3. Leave the grid by clicking the mouse outside the form or set the focus on a non editable field
  4. Press the letter 'T' on the keyboard result: All previously entered fields are filled with 'T'

贡献者指南