From ad743066723d3fae57f87bfa3e90b09cccb57c54 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Sat, 23 Apr 2022 19:42:31 +0300 Subject: [PATCH] Fix keydown on palette --- apps/common/main/lib/component/ThemeColorPalette.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/common/main/lib/component/ThemeColorPalette.js b/apps/common/main/lib/component/ThemeColorPalette.js index bd64690a3..50ec83d49 100644 --- a/apps/common/main/lib/component/ThemeColorPalette.js +++ b/apps/common/main/lib/component/ThemeColorPalette.js @@ -276,6 +276,9 @@ define([ if (child.length==0) { this.updateCustomColors(); child = el.find('.color-dynamic-' + (this.options.dynamiccolors - 1)); + } else { + if (this.options.hideEmptyColors && this._layoutParams) // recalc indexed + this._layoutParams = undefined; } child.first().removeClass('dynamic-empty-color').removeClass(this.emptyColorsClass).addClass(this.selectedCls).attr('color', color[1]);