Radio buttons and checkboxes in drawer broken (and instead triggering other change) if a field with same name already exists in main document (or other drawer below) #6131
Labels
status: needs-triage
Possible bug which hasn't been reproduced yet
Link to reproduction
No response
Describe the Bug
Due to duplicate IDs being used in the HTML, the
<label>
tag of a radio button or a checkbox will do the wrong thing when you have a drawer in which you are editing a document that has a radio field with the same name as the document in the main editing screen (or another drawer below). It will appear to be broken and instead change the field in the main document which the user doesn't even notice!To Reproduce
Payload Version
2.14.2
Adapters and Plugins
db-mongodb, bundler-webpack
The text was updated successfully, but these errors were encountered: