[BasicUI] Consider item state for the color picker (#1547)

It was not working if you added a label pattern to your color item

Related to discussion in #427

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
pull/1546/head^2
lolodomo 2022-11-19 20:17:46 +01:00 committed by GitHub
parent f1db954f76
commit 23fc572a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1332,9 +1332,9 @@
_t.longPress = false;
_t.pressed = false;
_t.setValue = function(value) {
_t.setValue = function(value, itemState) {
var
t = value.split(","),
t = itemState.split(","),
hsv = {
h: t[0] / 360,
s: t[1] / 100,