Merge pull request #11111 from Budibase/fix/navigateto-trimming-and-screen-options

Fix for 'Navigate To' URL options and path trimming.
This commit is contained in:
Andrew Kingston 2023-07-03 15:26:09 +01:00 committed by GitHub
commit 39e782767c
2 changed files with 7 additions and 2 deletions

View File

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

View File

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