From 4b2fd93bd326fe313fb1922892cb05f343952adc Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Tue, 7 Dec 2021 15:52:12 +0300 Subject: [PATCH 1/2] [SSE] Fix bug 54388 --- apps/common/main/lib/component/DataView.js | 9 ++++-- apps/common/main/lib/component/HintManager.js | 4 +++ apps/common/main/lib/component/ListView.js | 2 +- .../main/app/template/LeftMenu.template | 2 +- .../main/app/view/Spellcheck.js | 31 ++++++++++++++----- 5 files changed, 36 insertions(+), 12 deletions(-) diff --git a/apps/common/main/lib/component/DataView.js b/apps/common/main/lib/component/DataView.js index 86db1a9a7..6740c46d5 100644 --- a/apps/common/main/lib/component/DataView.js +++ b/apps/common/main/lib/component/DataView.js @@ -299,7 +299,8 @@ define([ this.cmpEl = $(this.template({ groups: me.groups ? me.groups.toJSON() : null, style: me.style, - cls: me.cls + cls: me.cls, + options: me.options })); parentEl.html(this.cmpEl); @@ -308,7 +309,8 @@ define([ this.cmpEl.html(this.template({ groups: me.groups ? me.groups.toJSON() : null, style: me.style, - cls: me.cls + cls: me.cls, + options: me.options })); } @@ -506,7 +508,8 @@ define([ $(this.el).html(this.template({ groups: this.groups ? this.groups.toJSON() : null, style: this.style, - cls: this.cls + cls: this.cls, + options: this.options })); if (!_.isUndefined(this.scroller)) { diff --git a/apps/common/main/lib/component/HintManager.js b/apps/common/main/lib/component/HintManager.js index dbe0c4e3b..0eab7c6e6 100644 --- a/apps/common/main/lib/component/HintManager.js +++ b/apps/common/main/lib/component/HintManager.js @@ -500,6 +500,10 @@ Common.UI.HintManager = new(function() { curr.trigger(jQuery.Event('click', {which: 1})); curr.focus(); _resetToDefault(); + } else if (curr.hasClass('listview')) { + _hideHints(); + curr.focus(); + _resetToDefault(); } else { _isComplete = false; _hideHints(); diff --git a/apps/common/main/lib/component/ListView.js b/apps/common/main/lib/component/ListView.js index 67b3824ba..f796d38bb 100644 --- a/apps/common/main/lib/component/ListView.js +++ b/apps/common/main/lib/component/ListView.js @@ -59,7 +59,7 @@ define([ }, template: _.template([ - '
' + '
data-hint="<%= options.dataHint %>" <% } if (options.dataHintDirection) { %> data-hint-direction="<%= options.dataHintDirection %>" <% } if (options.dataHintOffset) { %> data-hint-offset="<%= options.dataHintOffset %>" <% } %>>
' ].join('')), onResetItems : function() { diff --git a/apps/spreadsheeteditor/main/app/template/LeftMenu.template b/apps/spreadsheeteditor/main/app/template/LeftMenu.template index c11a45dac..b8da605c1 100644 --- a/apps/spreadsheeteditor/main/app/template/LeftMenu.template +++ b/apps/spreadsheeteditor/main/app/template/LeftMenu.template @@ -6,7 +6,7 @@ - + diff --git a/apps/spreadsheeteditor/main/app/view/Spellcheck.js b/apps/spreadsheeteditor/main/app/view/Spellcheck.js index 0264df328..f5486fa58 100644 --- a/apps/spreadsheeteditor/main/app/view/Spellcheck.js +++ b/apps/spreadsheeteditor/main/app/view/Spellcheck.js @@ -60,7 +60,7 @@ define([ '
', '
', '
', - '', + '', '', '
', '