radzen-blazor icon indicating copy to clipboard operation
radzen-blazor copied to clipboard

Colorpicker shows wrong color

Open Creator512 opened this issue 3 years ago • 0 comments

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.

Creator512 avatar Nov 11 '21 09:11 Creator512