[ColorPicker] allow empty color null/''
as value
#1980
renatodeleao
started this conversation in
Ideas
Replies: 1 comment
-
My recommendation is to do this in your userland code. We want to keep things as explicit as possible in the machine. It’s a good idea nonetheless |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently a controlled
ColorPicker
component requires a valid initial color value to "boot". Would you consider supporting a usecase where the initial value is not defined or can this be considered outside of the scope of the color picker since this "part" is usually shown before the actual picker is displayed?Possible alternative/workaround
in user land we could simply assume the something like
rgba(0,0,0,0)
as the "empty" value, coercenull
values to it and perform the necessary ui side-effectsCheers! ✌️
Beta Was this translation helpful? Give feedback.
All reactions