Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
i recently updated my solution using NuGet from 7.12.4 -> 7.13. This has caused a few errors with my colour pickers. The one with labels. I upgraded again to 7.13.1 as i thought it could have been a bug fix. However it still isn't working correctly.
If i change the colour in the CMS and save and publish. the hex value comes through correctly in debug mode but the labels don't update. Its like its an iPublished caching issue maybe? I'm not sure but any advice would be much appreciated.
Here is the code below i use to get the hex colour and the label.
string colorLabel = Model.Content.HasValue("heroImageButtonColour") ? Model.Content.GetPropertyValue<ColorPickerValueConverter.PickedColor>("heroImageButtonColour").Label.ToLower().Replace(" ", "-") : "white";
string colourHex = "#" + Model.Content.GetPropertyValue<string>("heroImageButtonColour");
There was a bug fix in 17.13.1 relating to colour pickers - see https://github.com/umbraco/Umbraco-CMS/issues/3993 If you are sure there is still an issue I'd flag it there.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted