Skip to content

Commit

Permalink
Merge pull request frappe#18755 from frappe/mergify/bp/version-14-hot…
Browse files Browse the repository at this point in the history
…fix/pr-18754
  • Loading branch information
shariquerik authored Nov 4, 2022
2 parents 243cfa3 + d9af38b commit a3fe0dc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions frappe/public/js/frappe/form/grid_row.js
Original file line number Diff line number Diff line change
Expand Up @@ -944,19 +944,21 @@ export default class GridRow {
vertical = false;
horizontal = false;
})
.on("click", function () {
.on("click", function (event) {
if (frappe.ui.form.editable_row !== me) {
var out = me.toggle_editable_row();
}
var col = this;
let first_input_field = $(col).find('input[type="Text"]:first');
first_input_field.trigger("focus");

first_input_field.length && on_input_focus(first_input_field);
if (event.pointerType == "touch") {
first_input_field.length && on_input_focus(first_input_field);

first_input_field.trigger("focus");
first_input_field.one("blur", () => (input_in_focus = false));
first_input_field.one("blur", () => (input_in_focus = false));

first_input_field.data("fieldtype") == "Date" && handle_date_picker();
first_input_field.data("fieldtype") == "Date" && handle_date_picker();
}

return out;
});
Expand Down

0 comments on commit a3fe0dc

Please sign in to comment.