Closed myerscw closed 7 years ago
If the format of the picker is set to "hexString" and restrictToFormat is true, isColorValid returns false because of:
if (isValid && this.options.restrictToFormat) { isValid = color.getFormat() === this.options.format; }
tinycolor returns the format from getFormat() as "hex" for a value like "#ff0000" which will get compared to "hexString".
Using tinycolor2 1.4.1 and angular-color-picker 3.4.4
This has been fixed in commit dbc042e and released in v3.4.5
If the format of the picker is set to "hexString" and restrictToFormat is true, isColorValid returns false because of:
tinycolor returns the format from getFormat() as "hex" for a value like "#ff0000" which will get compared to "hexString".
Using tinycolor2 1.4.1 and angular-color-picker 3.4.4