This commit is contained in:
Romein van Buren 2022-07-13 12:04:41 +02:00
parent c5658c872e
commit dbe3648545
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49

View File

@ -34,7 +34,7 @@ const defaultHeader = {
value: '',
};
const changeValue = () => dispatch('changeValue', value) && console.log(value);;
const changeValue = e => dispatch('changeValue', value) && e.target.focus();
const appendEndpoint = () => value = [ ...value, defaultEndpoint ];
function removeEndpoint(i) {
@ -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}
<option value={valName}>{realValueNames[valName]}</option>
@ -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}
<option value={opName}>{operatorNames[opName]}</option>