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