fix: Reimplement #2537 so that ui:label
is respected for array description and title
#3191
+200
−158
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reasons for making this change
Fix #2535 by reimplementing #2537. Also fixes #3176 by passing uiSchema and schema to the description and title templates.
@rjsf/utils
, updated the props for the description and title templates to addschema
title
anddescription
for the array field description and title props as optionalschema
is now passed to the all the calls to the description and title templatesantd
theme, removed the logic for conditionally rendering theArrayFieldDescriptionTemplate
since that template already handles the conditionDescriptionField
andTitleField
in thebootstrap-4
theme because they broke, and are redundant anyway given the other tests@rjsf/core
, updated theArrayFieldDescriptionTemplate
andArrayFieldTitleTemplate
to not render the template whenui:label
is falsecustom-templates.md
file to document the newschema
prop and add theuiSchema
prop docs where missingcontributing.md
file to improve developer documentationCHANGELOG.md
file accordinglyChecklist
npm run test:update
to update snapshots, if needed.