From 0bbd7d4d562bc37a54eee851c7ece6bf0142ed0c Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 31 Mar 2020 21:12:03 +0300 Subject: [PATCH] [DE] Fix Bug 44342 --- apps/documenteditor/main/app/view/DocumentHolder.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/documenteditor/main/app/view/DocumentHolder.js b/apps/documenteditor/main/app/view/DocumentHolder.js index 36b95aad7..725c85b88 100644 --- a/apps/documenteditor/main/app/view/DocumentHolder.js +++ b/apps/documenteditor/main/app/view/DocumentHolder.js @@ -4058,6 +4058,13 @@ define([ me.api.asc_UncheckContentControlButtons(); } }); + $(document).on('mousedown', function(e) { + if (e.target.localName !== 'canvas' && controlsContainer.is(':visible') && controlsContainer.find(e.target).length==0) { + controlsContainer.hide(); + me.api.asc_UncheckContentControlButtons(); + } + }); + } this.cmpCalendar.setDate(new Date(specProps ? specProps.get_FullDate() : undefined));