Skip to content

Set color not working with gradient #13

@vibrantBits

Description

@vibrantBits

Checklist

  • I'm using version [0.4.3]
  • My browser is: Google Chrome 63.0.3239.132 (64 bits)

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?

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions