From 036bdf0445e37cda99ff9933f20fc54fe67cadbc Mon Sep 17 00:00:00 2001 From: Corentin Forler Date: Mon, 22 Jul 2024 17:36:18 +0200 Subject: [PATCH] fix(grid): Hide backdrop when deleting row in modal --- frappe/public/js/frappe/form/grid_row.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frappe/public/js/frappe/form/grid_row.js b/frappe/public/js/frappe/form/grid_row.js index a12aab162b..b6688d754e 100644 --- a/frappe/public/js/frappe/form/grid_row.js +++ b/frappe/public/js/frappe/form/grid_row.js @@ -95,11 +95,10 @@ export default class GridRow { remove() { var me = this; if (this.grid.is_editable()) { + if (this.get_open_form()) { + this.hide_form(); + } if (this.frm) { - if (this.get_open_form()) { - this.hide_form(); - } - frappe .run_serially([ () => {