From 4e86d1ea26373a1f80c197b909d5ad1c6fc9085d Mon Sep 17 00:00:00 2001 From: biolds Date: Thu, 19 Oct 2023 18:11:00 +0200 Subject: [PATCH 1/2] [fix](@svelteui/core): avoid passing an unknown prop htmlFor to LabelElement (#476) ISSUES CLOSED: #475 --- .../src/components/InputWrapper/InputWrapper.svelte | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/svelteui-core/src/components/InputWrapper/InputWrapper.svelte b/packages/svelteui-core/src/components/InputWrapper/InputWrapper.svelte index 82f88b6ef..78ffd7110 100644 --- a/packages/svelteui-core/src/components/InputWrapper/InputWrapper.svelte +++ b/packages/svelteui-core/src/components/InputWrapper/InputWrapper.svelte @@ -23,10 +23,6 @@ size: $$Props['size'] = 'sm'; export { className as class }; - let _labelProps; - $: { - _labelProps = labelElement === 'label' ? { htmlFor: id, ...labelProps } : { ...labelProps }; - } $: ({ cx, classes, getStyles } = useStyles({ size }, { name: 'InputWrapper' })); @@ -37,7 +33,7 @@ {...$$restProps} > {#if label} - + {/if} {#if description} From f78a84fb7f37c976f75bdab65d783169f5420a73 Mon Sep 17 00:00:00 2001 From: Margarida Silva Date: Fri, 3 Nov 2023 18:05:51 +0000 Subject: [PATCH 2/2] [fix](@svelteui/demos): fix missing prop in AppShell usage demo ISSUES CLOSED: #473 --- .../src/demos/core/AppShell/AppShell.demo.usage.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/svelteui-demos/src/demos/core/AppShell/AppShell.demo.usage.svelte b/packages/svelteui-demos/src/demos/core/AppShell/AppShell.demo.usage.svelte index 70da9d2b2..80e8ed9ae 100644 --- a/packages/svelteui-demos/src/demos/core/AppShell/AppShell.demo.usage.svelte +++ b/packages/svelteui-demos/src/demos/core/AppShell/AppShell.demo.usage.svelte @@ -55,6 +55,7 @@