added hidden input to submit name when disabled (#2222)

This commit is contained in:
Erik Jan de Wit 2022-03-11 11:19:43 +01:00 committed by GitHub
parent b64fd23559
commit c73b4d2432
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -197,6 +197,9 @@ export default function AttributesGroupForm() {
name="name"
isReadOnly={!!matchingGroup}
/>
{!!matchingGroup && (
<input type="hidden" ref={form.register()} name="name" />
)}
</FormGroup>
<FormGroup
label={t("attributes-group:displayHeaderField")}