-1

ExtJS 6 modern toolkit colorfield change doesnt fire when I select color using picker - check this fiddle.

Am I not using this event correctly or is it a bug?

Sergey Novikov
  • 4,096
  • 7
  • 33
  • 59

1 Answers1

1

Yes, it's a bug in sencha. To make it work you can override the colorfield like:

Ext.define("SomeColorField", {
    override: "Ext.ux.colorpick.Field",
    onColorPickerOK: function (colorPicker) {
        var oldValue = this.getValue();
        this.setColor(colorPicker.getColor());
        this.updateValue(colorPicker.getColor());
        this.collapse();
        this.fireEvent('change', this, this.getValue(), oldValue);
   }
});

Example on https://fiddle.sencha.com/#view/editor&fiddle/301v

norbeq
  • 2,923
  • 1
  • 16
  • 20