Skip to content

Commit b82bf3d

Browse files
committed
fix: nested measure filter form not submitting (#9322)
* fix: nested measure filter form not submitting * Use formId from superforms
1 parent 9a05bf9 commit b82bf3d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

web-common/src/features/dashboards/filters/measure-filters/MeasureFilterForm.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
}),
6161
});
6262
63-
const { form, errors, submit, enhance } = superForm(
63+
const { form, formId, errors, submit, enhance } = superForm(
6464
defaults(initialValues, yup(validationSchema)),
6565
{
6666
SPA: true,
@@ -145,7 +145,7 @@
145145
use:enhance
146146
autocomplete="off"
147147
class="flex flex-col gap-y-3"
148-
id="measure"
148+
id={$formId}
149149
>
150150
<Select
151151
bind:value={$form["dimension"]}
@@ -193,6 +193,6 @@
193193
/>
194194
{/if}
195195

196-
<Button submitForm type="primary" form="measure">Apply</Button>
196+
<Button submitForm type="primary" form={$formId}>Apply</Button>
197197
</form>
198198
</Popover.Content>

0 commit comments

Comments
 (0)