Always provide context from form fields regardless of standalone mode to ensure global bindings work when nesting inside a form
This commit is contained in:
parent
f08e528c99
commit
25bfc65764
|
@ -99,8 +99,8 @@
|
|||
})
|
||||
</script>
|
||||
|
||||
{#if !formContext}
|
||||
<Provider data={{ value: fieldState?.value }}>
|
||||
{#if !formContext}
|
||||
<InnerForm
|
||||
{disabled}
|
||||
{readonly}
|
||||
|
@ -111,7 +111,6 @@
|
|||
<slot />
|
||||
</svelte:self>
|
||||
</InnerForm>
|
||||
</Provider>
|
||||
{:else}
|
||||
<div
|
||||
class="spectrum-Form-item"
|
||||
|
@ -158,6 +157,7 @@
|
|||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</Provider>
|
||||
|
||||
<style>
|
||||
:global(.form-block .spectrum-Form-item.span-2) {
|
||||
|
|
Loading…
Reference in New Issue