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

Default Color Value? #74

Open
Bruce-Hopkins opened this issue Feb 17, 2022 · 2 comments
Open

Default Color Value? #74

Bruce-Hopkins opened this issue Feb 17, 2022 · 2 comments

Comments

@Bruce-Hopkins
Copy link

Currently, there are parameters to pass the color value, every time that value is changed the color will reset itself to that value.

Can we also have the option to have a default color value? A value that is only present until the user changes the color.

I would appreciate this feature. Thanks!

@jaywcjlove
Copy link
Member

I'm not sure which component you're using requires such functionality.

@Bruce-Hopkins

@Bruce-Hopkins
Copy link
Author

In my case, we are pulling data from a backend API to collect the last color that the user picked. Later the user can change the color if they desire.

The bug that was introduced was the color hex of the color picker would revert back to the original color we pulled from the API.

Usually, we don't have an issue with this because most inputs have a default value parameter, which only sets the color hex to a specific color once it loads the component.

I have a work around for the issue, but it would be easier if we had a default value parameter.

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

No branches or pull requests

2 participants