Skip to content

Commit

Permalink
Merge pull request #18754 from maharshivpatel/fix-child-table-mobile-…
Browse files Browse the repository at this point in the history
…specific-code
  • Loading branch information
shariquerik committed Nov 4, 2022
2 parents 8b84042 + 9aa5526 commit a42b7b8
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 a42b7b8

Please sign in to comment.