Skip to content

Commit 91b6e1c

Browse files
committed
feat: add initialValue to form return object for improved state management
1 parent 6be1dae commit 91b6e1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/form/useForm.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class Validation<Values> implements IValidation<Values> {
8585
return {
8686
// @ts-ignore – z.B. wenn dein Input `defaultValue` kennt
8787
defaultValue: currentValue,
88+
initialValue: currentValue,
8889
formValidation: {
8990
setValue: (value: any) => {
9091
this.changeValue(currentName, value)

0 commit comments

Comments
 (0)