Custom Validation Rules do not work for Colorpicker

I have a colorpicker for which I want to use editable: true, to allow users to enter any valid color hex code. However, editable allows users to enter any value into the colorpicker as if it were a free text field.

I simply want to use a custom validation to let users know when they have entered an invalid value, and prevent the form from being saved. The custom validation function never gets called when used on the colorpicker.

https://snippet.webix.com/28oadxzl

Hello,
There’re two ways to define a rule:
1.Of the form rules. This object contains the names of the form elements and the rules that should be applied to them on validation of form (not one specific control):
https://snippet.webix.com/1voxhw5c
2. A rule can be specified in the configuration of an element of a form. In this case, you’ll be able to use partial validation:
https://snippet.webix.com/ut3xjouw
Also you can set a custom method for webix.rules object:
https://snippet.webix.com/tjcr1pky