Merge pull request #1751 from shackbarth/24344-2
authorTravis Webb <me@traviswebb.com>
Sat, 23 Aug 2014 03:18:37 +0000 (23:18 -0400)
committerTravis Webb <me@traviswebb.com>
Sat, 23 Aug 2014 03:18:37 +0000 (23:18 -0400)
issue #24344: don't sort the grid while the user is entering data

1  2 
lib/enyo-x/source/views/grid_box.js

@@@ -246,8 -246,7 +246,8 @@@ trailing:true, white:true, strict: fals
        ontap: "buttonTapped",
        onEnterOut: "enterOut",
        onMoveUp: "moveUp",
 -      onMoveDown: "moveDown"
 +      onMoveDown: "moveDown",
 +      onChildWorkspaceValueChange: "valueChanged"
      },
      published: {
        attr: null,
        this._setProperty("value", value, "valueChanged");
  
        collection = value;
+       if (this.getEditableIndex() !== null) {
+         // do not try to sort while the user is entering data
+         return;
+       }
        if (orderBy && !collection.comparator) {
          collection.comparator = function (a, b) {
            var aval,