Colorpicker shows wrong color #249

Closed
opened 2026-01-29 17:34:11 +00:00 by claunia · 0 comments
Owner

Originally created by @Creator512 on GitHub (Nov 11, 2021).

Describe the bug
Colorpicker shows wrong color when I close by clicking outside the popup.

To Reproduce
Steps to reproduce the behavior:

  1. ShowButton = true
  2. select a color
  3. close the dialog by clicking outside the popup
  4. the displayed color is not reset. => BUG!

Expected behavior
Reset the color if the popup is closed without clicking the "Apply" button.

Additional context
I am currently solving the problem with a workaround.
When the Close event is called, I use Reflection to set the private Color property to the Value property and call StateHasChanged.

Originally created by @Creator512 on GitHub (Nov 11, 2021). **Describe the bug** Colorpicker shows wrong color when I close by clicking outside the popup. **To Reproduce** Steps to reproduce the behavior: 1. ShowButton = true 2. select a color 3. close the dialog by clicking outside the popup 4. the displayed color is not reset. => BUG! **Expected behavior** Reset the color if the popup is closed without clicking the "Apply" button. **Additional context** I am currently solving the problem with a workaround. When the Close event is called, I use Reflection to set the private Color property to the Value property and call StateHasChanged.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#249