From da4132b537c81ea684faa710915882a15395afa2 Mon Sep 17 00:00:00 2001 From: Rasz_pl Date: Tue, 9 Apr 2024 02:53:31 +0200 Subject: [PATCH] Update satus.js color picker no longer writes during render --- menu/satus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu/satus.js b/menu/satus.js index 5a93469bc..46982cab2 100644 --- a/menu/satus.js +++ b/menu/satus.js @@ -1765,8 +1765,6 @@ satus.components.colorPicker = function(component, skeleton) { set: function(value) { array = value; - this.parentNode.storage.value = array; - element.style.backgroundColor = 'rgb(' + value.join(',') + ')'; } }); @@ -1894,6 +1892,7 @@ satus.components.colorPicker = function(component, skeleton) { component = modal.parentElement; component.color.value = component.skeleton.value || [0, 0, 0]; + satus.storage.remove(component.storage.key); modal.rendered.close(); } @@ -1917,6 +1916,7 @@ satus.components.colorPicker = function(component, skeleton) { component = modal.parentElement; component.color.value = satus.color.hslToRgb(modal.value); + component.storage.value = component.color.value; modal.rendered.close(); }