Add "on:change" tab event (#2541)

Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@xored.com>
This commit is contained in:
Sergei Ogorelkov 2023-01-25 19:43:23 +06:00 committed by GitHub
parent 2707c34659
commit 17f7563d85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,9 +45,9 @@
{#each model as tab, i}
{#if selected === i}
{#if typeof tab.component === 'string'}
<Component is={tab.component} props={tab.props} />
<Component is={tab.component} props={tab.props} on:change />
{:else}
<svelte:component this={tab.component} {...tab.props} />
<svelte:component this={tab.component} {...tab.props} on:change />
{/if}
{/if}
{/each}