Fix to ensure screens are listed in the navigateTo button action and that any URL configured there is trimmed

This commit is contained in:
Dean 2023-07-03 14:48:36 +01:00
parent 6691b2d4ed
commit 22ae329a2a
2 changed files with 7 additions and 2 deletions

View File

@ -68,6 +68,7 @@
on:blur={() => dispatch("blur")} on:blur={() => dispatch("blur")}
{placeholder} {placeholder}
{error} {error}
options={allOptions}
/> />
{#if !disabled} {#if !disabled}
<div class="icon" on:click={bindingDrawer.show}> <div class="icon" on:click={bindingDrawer.show}>

View File

@ -43,7 +43,9 @@
title="Destination" title="Destination"
placeholder="/screen" placeholder="/screen"
value={parameters.url} value={parameters.url}
on:change={value => (parameters.url = value.detail)} on:change={value => {
parameters.url = value.detail ? value.detail.trim() : value.detail
}}
{bindings} {bindings}
options={urlOptions} options={urlOptions}
appendBindingsAsOptions={false} appendBindingsAsOptions={false}
@ -55,7 +57,9 @@
title="Destination" title="Destination"
placeholder="/url" placeholder="/url"
value={parameters.url} value={parameters.url}
on:change={value => (parameters.url = value.detail)} on:change={value => {
parameters.url = value.detail ? value.detail.trim() : value.detail
}}
{bindings} {bindings}
/> />
<div /> <div />