Fix custom color

This commit is contained in:
Julia Radzhabova 2021-07-10 22:39:56 +03:00
parent 97f7323392
commit 1c3224eeeb

View file

@ -211,7 +211,7 @@ define([
if (!/dynamic-empty-color/.test(target[0].className)) {
me.clearSelection(true);
target.addClass(me.selectedCls);
if (color && !e.suppressEvent) {
if (!e.suppressEvent) {
me.lastSelectedIdx = parseInt(target.attr('idx'));
color = target.attr('color');
me.trigger('select', me, color);