fix: bidirectional eingabe update, hexToHsl null check, import validation, harmony umlauts
This commit is contained in:
1 parent
ce6c3298b4
commit
184f3ec0c2
4 files changed
+11
-3
No files matched your search
@@ -39,6 +39,7 @@ export function initEingabe(onSaveFavorit, onSaveSchema) {
|
||||
if (/^#[0-9a-fA-F]{6}$/.test(val)) {
|
||||
const hsl = hexToHsl(val);
|
||||
state.setColor(hsl);
|
||||
updateUI(hsl);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -47,6 +48,7 @@ export function initEingabe(onSaveFavorit, onSaveSchema) {
|
||||
if (rgb) {
|
||||
const hsl = rgbToHsl(rgb);
|
||||
state.setColor(hsl);
|
||||
updateUI(hsl);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -54,6 +56,7 @@ export function initEingabe(onSaveFavorit, onSaveSchema) {
|
||||
const hsl = parseHsl(hslInput.value);
|
||||
if (hsl) {
|
||||
state.setColor(hsl);
|
||||
updateUI(hsl);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user