From d518d3671bd2f4db99e5cdf56ce6d002d11fadfd Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 4 Aug 2022 18:35:57 +0300 Subject: [PATCH] fix tab switch --- client/src/views/record/detail.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/views/record/detail.js b/client/src/views/record/detail.js index 48d4c1aca9..ec3d88d7cb 100644 --- a/client/src/views/record/detail.js +++ b/client/src/views/record/detail.js @@ -3611,7 +3611,13 @@ function (Dep, ViewRecordHelper, ActionItemSetup) { .first() .focus(); }, 50); + + return; } + + this.$el + .find(`.middle-tabs button[data-tab="${tab}"]`) + .focus(); }, /**