Checklist
Description
Trying to set a gradient value with the API is not working. It looks that this is a bug or actually there is no explicit way to achieve this. Anyone with same problem / workaround?
The picker is in 'gradient' mode.
How can we reproduce this bug?
- Try to set a gradient value.
$().asColorPicker('val', 'linear-gradient(to top, rgb(126, 13, 192) 0%, rgb(48, 8, 8) 100%)');
What did you expect to happen?
Gradient should be set in the input and in the trigger just as when a flat color is set.
What happened instead?
The input becomes empty and the trigger loads flat white color no matter what gradient colors were used.
Checklist
Description
Trying to set a gradient value with the API is not working. It looks that this is a bug or actually there is no explicit way to achieve this. Anyone with same problem / workaround?
The picker is in 'gradient' mode.
How can we reproduce this bug?
$().asColorPicker('val', 'linear-gradient(to top, rgb(126, 13, 192) 0%, rgb(48, 8, 8) 100%)');
What did you expect to happen?
Gradient should be set in the input and in the trigger just as when a flat color is set.
What happened instead?
The input becomes empty and the trigger loads flat white color no matter what gradient colors were used.