Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 3a3b97e

Browse files
committed
fix(custom-field): add possibility to default number value
1 parent b7ead1a commit 3a3b97e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/core/models.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ export interface FormValidation {
4040
}
4141

4242
export interface InputBase {
43-
name: string;
44-
label: string;
43+
label?: string;
4544
disabled?: boolean;
4645
customClass?: string;
4746
placeholder?: string;
@@ -81,7 +80,7 @@ export type CheckboxInput = InputBase & {
8180

8281
export type CustomInput = InputBase & {
8382
type: 'custom-field';
84-
value: boolean | string;
83+
value: boolean | string | number;
8584
};
8685

8786
export type EmailInput = InputBase & {

0 commit comments

Comments
 (0)