Skip to content

Color change cancel doesn't update color #272

Description

@MarvNC

What is the current behavior?

After changing the color and clicking on the original color in the top left, the picker after the cancel event is fired does not return to having the original color.

Please provide the steps to reproduce and create a JSFiddle.

https://jsfiddle.net/fe862d71/2/

What is the expected behavior?

After clicking the top left color to cancel and getting the cancel event, the color accessed in the PickrInstance or the picker itself should have the original color. However, it takes two clicks of the original color for the picker instance to update its color.

Your environment:

Version (see Pickr.version): Latest
Used bundle (es5 or normal one): Normal (though it seems the fiddle template uses es5)
Used theme (default is classic): Classic
Browser-version:  Chrome 90
Operating-system:  Windows 10
2021-04-19_13-59-06.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions