From d8c20f9b9cee03869247f1a26dede448d8e2f288 Mon Sep 17 00:00:00 2001 From: Conor_Mack Date: Tue, 2 Jun 2020 15:09:31 +0100 Subject: [PATCH] Updating input group for auto values --- .../builder/src/components/common/Inputs/InputGroup.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/components/common/Inputs/InputGroup.svelte b/packages/builder/src/components/common/Inputs/InputGroup.svelte index 886d1def6f..36ebeb7d08 100644 --- a/packages/builder/src/components/common/Inputs/InputGroup.svelte +++ b/packages/builder/src/components/common/Inputs/InputGroup.svelte @@ -10,9 +10,10 @@ export let onChange = () => {} function handleChange(val, idx) { - value.splice(idx, 1, suffix ? val + suffix : val) + value.splice(idx, 1, val !== "auto" ? value + suffix : val) + value = value - let _value = value.map(v => (!v.endsWith(suffix) ? v + suffix : v)) + let _value = value.map(v => (!v.endsWith(suffix) && v !== "auto" ? v + suffix : v)) onChange(_value) }