diff --git a/packages/forms/src/components/form/BindForm.astro b/packages/forms/src/components/form/BindForm.astro index a0e4ee5..5cfce63 100644 --- a/packages/forms/src/components/form/BindForm.astro +++ b/packages/forms/src/components/form/BindForm.astro @@ -12,12 +12,12 @@ export interface Props { key?: string } -const { lastRender: parantLastRender, key = '', bindId: parantbindId = '' } = getContext(Astro, '@astro-utils/forms'); +const { lastRender: parantLastRender, bindId: parantbindId = '' } = getContext(Astro, '@astro-utils/forms'); if (parantLastRender === false) { return; } -const { bind = Bind(), defaultSubmitClick } = Astro.props; +const { bind = Bind(), defaultSubmitClick, key = '' } = Astro.props; const context = { executeAfter: [],