From 5b2ab0ca0e1c4c5db8437fcda7d257ac5ead6ed0 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 20 Apr 2021 15:29:32 +0300 Subject: [PATCH] Fix Bug 49762 (Revert rev. 6014823eb31ec39cf5d4a75bb2fac5e54be3d34f) --- apps/common/main/lib/component/ComboBoxFonts.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/component/ComboBoxFonts.js b/apps/common/main/lib/component/ComboBoxFonts.js index 2f47283a6..87f2b272b 100644 --- a/apps/common/main/lib/component/ComboBoxFonts.js +++ b/apps/common/main/lib/component/ComboBoxFonts.js @@ -356,19 +356,20 @@ define([ var me = this; var name = (_.isFunction(font.get_Name) ? font.get_Name() : font.asc_getFontName()); if (this.__name !== name) { + this.__name = name; if (!this.__nameId) { this.__nameId = setTimeout(function () { - me.onApiChangeFontInternal(name); + me.onApiChangeFontInternal(me.__name); me.__nameId = null; }, 100); } + } }, onApiChangeFontInternal: function(name) { if (this.inFormControl) return; - this.__name = name; if (this.getRawValue() !== name) { var record = this.store.findWhere({ name: name