changeset 4ce2d3b9e0b7 in sao:6.2
details: https://hg.tryton.org/sao?cmd=changeset&node=4ce2d3b9e0b7
description:
        Wait promise completion before triggering click on next row in editable 
list

        issue11247
        review393681026
        (grafted from b4dd36f6f59883a787f118765b2a6da99c822f60)
diffstat:

 src/view/tree.js |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 4a390f1ab123 -r 4ce2d3b9e0b7 src/view/tree.js
--- a/src/view/tree.js  Tue Feb 22 23:01:11 2022 +0100
+++ b/src/view/tree.js  Sat Feb 12 14:03:55 2022 +0100
@@ -2057,9 +2057,13 @@
                                             }.bind(this));
                                     }
                                 } else {
-                                    this._get_column_td(next_column, next_row)
-                                        .trigger('click')
-                                        .find(':input,[tabindex=0]').focus();
+                                    prm.then(function() {
+                                        this._get_column_td(
+                                            next_column, next_row)
+                                            .trigger('click')
+                                            .find(':input,[tabindex=0]')
+                                            .focus();
+                                    }.bind(this));
                                 }
                             }
                         }.bind(this));

Reply via email to