From dbe3648545393b02903fe4a91de04bfbbeb7e43a Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Wed, 13 Jul 2022 12:04:41 +0200 Subject: [PATCH] Events --- gui/components/formautotestfield.svelte | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gui/components/formautotestfield.svelte b/gui/components/formautotestfield.svelte index 181aceb..3ffd00c 100644 --- a/gui/components/formautotestfield.svelte +++ b/gui/components/formautotestfield.svelte @@ -34,8 +34,8 @@ const defaultHeader = { value: '', }; -const changeValue = () => dispatch('changeValue', value) && console.log(value);; -const appendEndpoint = () => value = [...value, defaultEndpoint]; +const changeValue = e => dispatch('changeValue', value) && e.target.focus(); +const appendEndpoint = () => value = [ ...value, defaultEndpoint ]; function removeEndpoint(i) { value.splice(i, 1); @@ -146,9 +146,7 @@ function removeEndpoint(i) { bind:value={req.type} disabled={readonly} on:focus - on:keyup={changeValue} on:change={changeValue} - on:blur={changeValue} > {#each Object.keys(realValueNames) as valName} @@ -176,9 +174,7 @@ function removeEndpoint(i) { bind:value={req.operator} disabled={readonly} on:focus - on:keyup={changeValue} on:change={changeValue} - on:blur={changeValue} > {#each Object.keys(operatorNames) as opName}