mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-17 22:29:52 +08:00
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:
parent
0f4d311c7c
commit
3135197476
1 changed files with 2 additions and 0 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue