angular-ui/ui-grid

Celledit makes changes on all cells after edit and cellNav

Open

#5,742 opened on 2016年10月14日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)JavaScript (5,395 stars) (2,496 forks)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'

コントリビューターガイド