Merge pull request #4167 from atmire/w2p-129621_submission-form-field-type-name-null-issue_contribute-8.1

Fix unable to remove data from a submission form field of type "name"
This commit is contained in:
Tim Donohue
2025-04-23 11:06:47 -05:00
committed by GitHub

View File

@@ -412,7 +412,7 @@ export class SectionFormOperationsService {
);
}
}
} else if (!value.hasValue()) {
} else if (isNotEmpty(value) && !value.hasValue()) {
// New value is empty, so dispatch a remove operation
if (this.getArrayIndexFromEvent(event) === 0) {
this.operationsBuilder.remove(pathCombiner.getPath(segmentedPath));