You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to use this type multiple times in a single document.
eg:
...,{name: "svgTop",title: "Top Image",type: "svgUploadPreview",description: "Used on the index page - displayed at the top",validation: (Rule)=>Rule.required(),},{name: "svgBottom",title: "Bottom Image",type: "svgUploadPreview",description: "Used on the index page - displayed at the bottom",validation: (Rule)=>Rule.required(),},{name: "svgCombined",title: "Combined Image",type: "svgUploadPreview",description: "Used as the header on non-index pages and within the menu.",validation: (Rule)=>Rule.required(),},
...
It seems this causes an issue as all inputs have the same HTML name / id attribute svg-upload.
I'd be happy to open a PR but it seems like the easy fix might be replace svg-uploadhere with this.props.name and the htmlFor attribute on line 54.
Thanks for your work on this.
The text was updated successfully, but these errors were encountered:
I'm attempting to use this type multiple times in a single document.
eg:
It seems this causes an issue as all inputs have the same HTML name / id attribute
svg-upload
.I'd be happy to open a PR but it seems like the easy fix might be replace
svg-upload
here withthis.props.name
and thehtmlFor
attribute on line 54.Thanks for your work on this.
The text was updated successfully, but these errors were encountered: