issue #24344: don't sort the grid while the user is entering data
authorSteve Hackbarth <stephenhackbarth@gmail.com>
Thu, 14 Aug 2014 18:25:42 +0000 (14:25 -0400)
committerSteve Hackbarth <stephenhackbarth@gmail.com>
Thu, 14 Aug 2014 18:25:42 +0000 (14:25 -0400)
lib/enyo-x/source/views/grid_box.js

index 17898fe..9634276 100644 (file)
@@ -584,6 +584,11 @@ trailing:true, white:true, strict: false*/
       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,