Ensure field ID's are always safe to be used as DOM ID's
This commit is contained in:
parent
8d8cffc7fc
commit
ba8d8b5327
|
@ -118,7 +118,7 @@
|
|||
const makeFieldState = (field, defaultValue) => {
|
||||
return writable({
|
||||
field,
|
||||
fieldId: `id-${generateID()}-${field}`,
|
||||
fieldId: `id-${generateID()}`,
|
||||
value: initialValues[field] ?? defaultValue,
|
||||
error: null,
|
||||
valid: true,
|
||||
|
|
Loading…
Reference in New Issue