fix(theme-picker): ensure color input is updated correctly in updateColors function (@raaid3) (#6678)

### Description

The input of type color doesn't properly get updated when the text input
for setting a custom color is modified with a value.

Video:
https://github.com/user-attachments/assets/87bcc3fd-a71c-460f-adb6-94945efb8b1f
This commit is contained in:
Dhyan Rai 2025-07-01 07:29:55 -04:00 committed by GitHub
parent 0f4d311c7c
commit 3135197476
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,6 +59,7 @@ function updateColors(
}
colorPicker.find("input.input").val(color);
colorPicker.find("input.color").attr("value", color);
colorPicker.find("input.color").val(color);
return;
}
const colorREGEX = [
@ -114,6 +115,7 @@ function updateColors(
}
colorPicker.find("input.input").val(color);
colorPicker.find("input.color").attr("value", color);
colorPicker.find("input.color").val(color);
}
export async function refreshPresetButtons(): Promise<void> {