Fix highlighting search results when search bar is visible

This commit is contained in:
Julia.Radzhabova
2025-11-28 21:45:08 +03:00
parent 063b297861
commit c80ca730c7
3 changed files with 3 additions and 3 deletions

View File

@ -463,7 +463,7 @@ define([
},
onSelectSearchingResults: function (val) {
if (!val && this.getApplication().getController('LeftMenu').isSearchPanelVisible()) return;
if (!val && (this.getApplication().getController('LeftMenu').isSearchPanelVisible() || this.getApplication().getController('Viewport').isSearchBarVisible())) return;
if (this._state.isHighlightedResults !== val) {
this.api.asc_selectSearchingResults(val);

View File

@ -487,7 +487,7 @@ define([
},
onSelectSearchingResults: function (val) {
if (!val && this.getApplication().getController('LeftMenu').isSearchPanelVisible()) return;
if (!val && (this.getApplication().getController('LeftMenu').isSearchPanelVisible() || this.getApplication().getController('Viewport').isSearchBarVisible())) return;
if (this._state.isHighlightedResults !== val) {
this.api.asc_selectSearchingResults(val);

View File

@ -599,7 +599,7 @@ define([
},
onSelectSearchingResults: function (val) {
if (!val && this.getApplication().getController('LeftMenu').isSearchPanelVisible()) return;
if (!val && (this.getApplication().getController('LeftMenu').isSearchPanelVisible() || this.getApplication().getController('Viewport').isSearchBarVisible())) return;
if (this._state.isHighlightedResults !== val) {
this.api.asc_selectSearchingResults(val);