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}) }