onclick(text)} />
+ on:click={() => dispatch('click', text)} />
{/each}
diff --git a/packages/builder/src/components/userInterface/Colorpicker/components/Colorpicker.svelte b/packages/builder/src/components/userInterface/Colorpicker/components/Colorpicker.svelte
index 1a1196dd14..a9d4d7d8fb 100644
--- a/packages/builder/src/components/userInterface/Colorpicker/components/Colorpicker.svelte
+++ b/packages/builder/src/components/userInterface/Colorpicker/components/Colorpicker.svelte
@@ -120,7 +120,7 @@
}
function changeFormatAndConvert(f) {
- format = f
+ format = f.detail
value = convertHsvaToFormat([h, s, v, a], format)
}
@@ -251,7 +251,7 @@
{/if}
-
+
handleColorInput(event.target.value)}
diff --git a/packages/builder/src/components/userInterface/Colorpicker/components/Colorpreview.svelte b/packages/builder/src/components/userInterface/Colorpicker/components/Colorpreview.svelte
index 474b287934..8f43865cd0 100644
--- a/packages/builder/src/components/userInterface/Colorpicker/components/Colorpreview.svelte
+++ b/packages/builder/src/components/userInterface/Colorpicker/components/Colorpreview.svelte
@@ -47,7 +47,8 @@
function onColorChange(color) {
value = color.detail
- dispatch("change", color.detail)
+ const fn = debounce(() => dispatch("change", color.detail), 300)
+ fn()
}
function calculateDimensions() {