Skip to content

Commit fc9296f

Browse files
committed
Fix iOS/macOS build by helping the compiler with casting.
1 parent 719de09 commit fc9296f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/ColorPicker/src/ColorPicker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ private void UpdateColorControlValues()
766766

767767
if (this.PaletteItemGridView != null)
768768
{
769-
this.PaletteItemGridView.SelectedItem = (this.CustomPaletteColors?.Contains(rgbColor) ?? false) ? rgbColor : null;
769+
this.PaletteItemGridView.SelectedItem = (this.CustomPaletteColors?.Contains(rgbColor) ?? false) ? (object)rgbColor : null;
770770
}
771771

772772
if (eventsDisconnectedByMethod)

0 commit comments

Comments
 (0)