[Common] ComboBoxFonts: don't listen asc_onFontFamily event when combobox is in modal window.

This commit is contained in:
Julia Radzhabova 2017-05-26 15:49:53 +03:00
parent ad866734b6
commit 3feed7f7c5

View file

@ -113,6 +113,8 @@ define([
this._input.on('keyup', _.bind(this.onInputKeyUp, this));
this._input.on('keydown', _.bind(this.onInputKeyDown, this));
this._modalParents = this.cmpEl.closest('.asc-window');
return this;
},
@ -319,6 +321,8 @@ define([
var name = (_.isFunction(font.get_Name) ? font.get_Name() : font.asc_getName());
if (this.getRawValue() !== name) {
if (this._modalParents.length > 0) return;
var record = this.store.findWhere({
name: name
});