Skip to content

Commit d35534e

Browse files
committed
feat: added unsubscribe form
1 parent c97b99a commit d35534e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/forms/BaseForm.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ const props = defineProps({
4747
type: Boolean,
4848
default: true,
4949
},
50-
/** The CSS classes to apply to the submit button */
50+
/** The CSS classes to apply to the submit button. Null should theoretically render no class, but there's a known Vue3 issue @see https://github.com/vuejs/core/issues/3173 */
5151
submitButtonClasses: {
52-
type: Array,
53-
default: () => [],
52+
type: Array as PropType<string[] | null>,
53+
default: null,
5454
},
5555
});
5656

src/forms/__tests__/__snapshots__/BaseForm.spec.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
exports[`Base Form > accepts inputs in its default slot 1`] = `
44
"<form>
5-
<!-- @slot This is the default slot for the form. You can use this to add any input or button you want. --><input type="text"><input type="text"><!-- @slot This is the slot for the submit button. You can use this to add a custom submit button or action. --><button disabled="" type="submit" tabindex="0" aria-busy="false">Submit</button><!-- @slot This is the slot for after the submit. This is useful for back buttons or other actions. -->
5+
<!-- @slot This is the default slot for the form. You can use this to add any input or button you want. --><input type="text"><input type="text"><!-- @slot This is the slot for the submit button. You can use this to add a custom submit button or action. --><button disabled="" type="submit" tabindex="0" aria-busy="false" class="">Submit</button><!-- @slot This is the slot for after the submit. This is useful for back buttons or other actions. -->
66
</form>"
77
`;
88
99
exports[`Base Form > renders a form element 1`] = `
1010
"<form>
1111
<!-- @slot This is the default slot for the form. You can use this to add any input or button you want. -->
12-
<!-- @slot This is the slot for the submit button. You can use this to add a custom submit button or action. --><button disabled="" type="submit" tabindex="0" aria-busy="false">Submit</button><!-- @slot This is the slot for after the submit. This is useful for back buttons or other actions. -->
12+
<!-- @slot This is the slot for the submit button. You can use this to add a custom submit button or action. --><button disabled="" type="submit" tabindex="0" aria-busy="false" class="">Submit</button><!-- @slot This is the slot for after the submit. This is useful for back buttons or other actions. -->
1313
</form>"
1414
`;

0 commit comments

Comments
 (0)