Hi, as the title suggests I am having unexpected behaviour using setValue in BajaScript.
Previously I had my component where the code below worked fine. However now I am doing it with a string and it wont work fully. I am able to set it, but as soon as I refresh my browser I am back to the old initial value again, could there maybe be something blocking this save?. Is there anyone with a similar experience and with a potential fix?
$('#color-picker').on('change', function() {
const selectedColor = $(this).val();
widget.properties().setValue('color', selectedColor);
updateSvgColors(selectedColor);
});
Thanks!