From a7944cfa7987e88f24e87babe4fbd92a99af2e2e Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Fri, 10 Jun 2022 17:36:11 +0300 Subject: [PATCH] [SSE] Fix search in mail merge mode --- apps/spreadsheeteditor/main/app/controller/Toolbar.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index f6aacc411..92ecc9081 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -1317,7 +1317,11 @@ define([ }, searchShow: function () { - if (this.toolbar.btnSearch && this.searchBar && !this.searchBar.isVisible()) { + if (this.toolbar.btnSearch) { + if (this.searchBar && this.searchBar.isVisible()) { + this.searchBar.focus(); + return; + } this.toolbar.btnSearch.toggle(true); } },