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

change event fired on UI only #264

Open
hssngl opened this issue Jan 6, 2021 · 3 comments
Open

change event fired on UI only #264

hssngl opened this issue Jan 6, 2021 · 3 comments
Labels
improvement Something could be improved

Comments

@hssngl
Copy link

hssngl commented Jan 6, 2021

whenever I do setColor on the Pickr instance it gets fired. I wonder If I can only listen to the change event when the user manually changes the color on the UI?

@hssngl hssngl added the question Further information is requested label Jan 6, 2021
@simonwep
Copy link
Owner

simonwep commented Jan 7, 2021

See Readme#methods, setColor has a silent argument.

@hssngl
Copy link
Author

hssngl commented Jan 10, 2021

setColor method denotes to changing the color of the instance, setColor still trigger the 'change' event.
version: 1.8.0

@simonwep
Copy link
Owner

Oh that seems to be true, only the save event is supressed... I'll mark this as a feature request.

@simonwep simonwep added improvement Something could be improved and removed question Further information is requested labels Mar 13, 2021
@simonwep simonwep removed their assignment Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Something could be improved
Projects
None yet
Development

No branches or pull requests

2 participants