mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-26 04:04:41 +08:00
[Common] ComboBoxFonts: don't listen asc_onFontFamily event when combobox is in modal window.
This commit is contained in:
@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user