-
-
Notifications
You must be signed in to change notification settings - Fork 534
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
[Bug]: ColorPicker does not accept empty color #5905
Comments
There seem to be two problems here.
We will fix the first issue. |
That still is not correct, is it? Clicking "Clear" sets Color to
|
No. The |
This problem is from the original library. The real color cannot be undefined. So we try to have default color that makes some sense. |
Interesting, good to know. In my actual test I have a variable that is null and it behaves the same, so I did not notice, thanks for the info. |
I see. The author provides a workaround in simonwep/pickr#178 (comment), would that be acceptable? I can look into implementing it |
That might work. Working on it. |
Thank you for the fast work! |
Blazorise Version
1.7
What Blazorise provider are you running on?
None
Link to minimal reproduction or a simple code snippet
Steps to reproduce & bug description
Set
Color
property tonull
What is expected?
The item should be set to no color, same as when the "Clear" button is used
What is actually happening?
Black is selected
What browsers do you see the problem on?
No response
Any additional comments?
I have a strong suspicion it is because of this line:
Blazorise/Source/Blazorise/wwwroot/colorPicker.js
Line 19 in 314d97e
The JS part has a fallback again; the blazor part already sets this default, so this should not be there
The text was updated successfully, but these errors were encountered: