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

Set color picker default value to black #51

Merged
merged 1 commit into from
Mar 8, 2021
Merged

Set color picker default value to black #51

merged 1 commit into from
Mar 8, 2021

Conversation

imsyf
Copy link
Contributor

@imsyf imsyf commented Feb 22, 2021

I noticed that color picker HTML element retains the last picked value from user even after the page is reloaded. This will cause inconsistency between color value and the actual colorEl.value.

This commit will always initialize color picker default value to black, the same way that color variable was set originally.

I noticed that color picker HTML element retains the last picked value from user even after the page is reloaded. This will cause inconsistency between `color` value and the actual `colorEl.value`.

This commit will always initialize color picker default value to black, the same way that `color` variable was set originally.
@bradtraversy bradtraversy merged commit 773d1f3 into bradtraversy:master Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants