Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onChange event gives old color value when calling setColor() #176

Closed
chuen1118 opened this issue Nov 7, 2019 · 1 comment
Closed

onChange event gives old color value when calling setColor() #176

chuen1118 opened this issue Nov 7, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@chuen1118
Copy link

What is the current behavior?

Calling setColor(newColor) fired change event, however the change event callback

pickr.on('change', (color, instance) => {
    console.log('change', color, instance);
})

provided the old color instead of the one I passed to setColor().

Please provide the steps to reproduce and create a JSFiddle.

Demo

What is the expected behavior?

The new color is expected.

Your environment:

Version (see Pickr.version): 1.4.6
Used bundle (es5 or normal one): normal
Used theme (default is classic): monolith
Browser-version:  
Operating-system:  
@chuen1118 chuen1118 added the bug Something isn't working label Nov 7, 2019
@simonwep simonwep assigned simonwep and unassigned NateSeymour Nov 7, 2019
@simonwep
Copy link
Owner

simonwep commented Nov 7, 2019

Fixed in d090baf :)

@simonwep simonwep closed this as completed Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants