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:
commit
39e782767c
|
@ -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}>
|
||||||
|
|
|
@ -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 />
|
||||||
|
|
Loading…
Reference in New Issue