Override field DescriptionField
See original GitHub issuePrerequisites
- I have read the documentation;
- I’m providing a sample at https://codesandbox.io/s/custom-fields-example-forked-5nuq9 demonstrating the issue.
Description
When I override DescriptionField in core
then all works fine. When I override it in material-ui
or bootstrap-4
then nothing happens.
Steps to Reproduce
- Go to above sample (
core
is enabled) and observe that all is fine. - Comment lines 27-29 and observe that the description on the schema element disappears. So far so good.
- Change
import Form from "@rjsf/core";
toimport Form from "@rjsf/material-ui";
orimport Form from "@rjsf/bootstrap-4";
- No matter if lines 27-29 are commented out or not, the description field gets rendered.
Expected behavior
When I override DescriptionField in material-ui
or bootstrap-4
and comment out lines 27-29 I expect not to see the description field being rendered.
Actual behavior
The description field is still rendered when material-ui
or bootstrap-4
is selected and lines 27-29 are commented out.
What am I doing wrong?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Overriding field names for Description, Value and Flag fields
The overriding names for Description, Value, Flag, and custom Date fields are also displayed in the Properties dialog box for each object.
Read more >Override field values - Trumba Help
Override field values. Field overrides give you the flexibility to associate different default field values with different event templates and/or calendars.
Read more >How can I conditionally override the field description?
I am using the Reference Field Option Limit module in Drupal 7 and I want to change the explanation text that says:.
Read more >Schema description of one field overrides ... - GitHub
Overriding properties in the referenced schema leads to weird behavior when referenced schema is used multiple times. I understand why current ...
Read more >Overriding Salesforce Field Metadata
You can override the field metadata that the sfdcDigest transformation extracts from a Salesforce object to make the data appear differently in a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I can confirm that a custom
DescriptionField
supplied to theForm
component in thefields
prop is ignored and unused in the Bootstrap-4 variant.Fixed in the v5 beta, see the 5.x migration guide