From f5e81d4dfa1d8104fa2617882608ed7170678bed Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Thu, 5 Jan 2023 16:41:17 +0530 Subject: [PATCH] fix: Activate tab when scrolling to field --- frappe/public/js/frappe/form/tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/form/tab.js b/frappe/public/js/frappe/form/tab.js index c838946be7..ac5ee0f7c7 100644 --- a/frappe/public/js/frappe/form/tab.js +++ b/frappe/public/js/frappe/form/tab.js @@ -85,7 +85,7 @@ export default class Tab { set_active() { this.tab_link.find(".nav-link").tab("show"); this.wrapper.addClass("show"); - this.frm.active_tab = this; + this.frm?.set_active_tab?.(this); } is_active() {