From ab49a8311f86df1d0b6d8ba63900690e4968336f Mon Sep 17 00:00:00 2001 From: ido Date: Tue, 13 Aug 2024 23:40:56 +0300 Subject: [PATCH] fix(BinForm): map, unique 'key' --- packages/forms/src/components/form/BindForm.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: [],