From 09aa7e8a632d5380a9f002129a36f3242a475a28 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 5 Feb 2026 13:28:14 +0100 Subject: [PATCH] rgb: don't break pad styling when updating hue (use correct method to update styles) --- src/client/widgets/pads/rgb.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/widgets/pads/rgb.mjs b/src/client/widgets/pads/rgb.mjs index 4b100027..734d4511 100644 --- a/src/client/widgets/pads/rgb.mjs +++ b/src/client/widgets/pads/rgb.mjs @@ -217,7 +217,7 @@ export default class Rgb extends Widget { if (!options.nohue && !options.dragged) { var hue = hsbToRgb({h:this.hsb.h,s:100,b:100}), hueStr = `rgb(${Math.round(hue.r)},${Math.round(hue.g)},${Math.round(hue.b)})` - this.pad.container.setAttribute('style',`background-color:${hueStr}`) + this.pad.container.style.setProperty('background-color', hueStr) this.hue.setValue(this.hsb.h, {sync: false, send:false, dragged:false}) }