diff --git a/frontend/src/lib/components/apps/components/inputs/AppTextInput.svelte b/frontend/src/lib/components/apps/components/inputs/AppTextInput.svelte index 6ff9844185..d36c8d5338 100644 --- a/frontend/src/lib/components/apps/components/inputs/AppTextInput.svelte +++ b/frontend/src/lib/components/apps/components/inputs/AppTextInput.svelte @@ -50,7 +50,8 @@ css?.input?.class ?? '' )} style={css?.input?.style ?? ''} - on:focus={() => ($selectedComponent = id)} + on:focus|stopPropagation={() => ($selectedComponent = id)} + on:pointerdown|stopPropagation={() => ($selectedComponent = id)} type="password" bind:value {placeholder} @@ -63,6 +64,7 @@ )} style={css?.input?.style ?? ''} on:focus={() => ($selectedComponent = id)} + on:pointerdown|stopPropagation={() => ($selectedComponent = id)} type="text" bind:value {placeholder} @@ -75,6 +77,7 @@ )} style={css?.input?.style ?? ''} on:focus={() => ($selectedComponent = id)} + on:pointerdown|stopPropagation={() => ($selectedComponent = id)} type="email" bind:value {placeholder} diff --git a/frontend/src/lib/components/apps/components/inputs/currency/AppCurrencyInput.svelte b/frontend/src/lib/components/apps/components/inputs/currency/AppCurrencyInput.svelte index 6ba9fcabc0..4e969d3f14 100644 --- a/frontend/src/lib/components/apps/components/inputs/currency/AppCurrencyInput.svelte +++ b/frontend/src/lib/components/apps/components/inputs/currency/AppCurrencyInput.svelte @@ -16,7 +16,7 @@ export let customCss: ComponentCustomCSS<'currencycomponent'> | undefined = undefined export let render: boolean - const { app, worldStore } = getContext('AppViewerContext') + const { app, worldStore, selectedComponent } = getContext('AppViewerContext') initOutput($worldStore, id, { result: undefined @@ -58,21 +58,20 @@ {#key isNegativeAllowed} {#key locale} {#key currency} - { - e?.stopPropagation() - }} - {isNegativeAllowed} - /> +
($selectedComponent = id)}> + +
{/key} {/key} {/key} diff --git a/frontend/src/lib/components/apps/editor/component/components.ts b/frontend/src/lib/components/apps/editor/component/components.ts index 6bd38fd95e..e3e074877a 100644 --- a/frontend/src/lib/components/apps/editor/component/components.ts +++ b/frontend/src/lib/components/apps/editor/component/components.ts @@ -393,7 +393,7 @@ export const components = { formbuttoncomponent: { name: 'Modal Form', icon: PlusSquare, - dims: '2:8-6:8' as AppComponentDimensions, + dims: '1:1-2:1' as AppComponentDimensions, customCss: { button: { class: '', style: '' }, popup: { class: '', style: '' }