question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Override field DescriptionField

See original GitHub issue

Prerequisites

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

  1. Go to above sample (core is enabled) and observe that all is fine.
  2. Comment lines 27-29 and observe that the description on the schema element disappears. So far so good.
  3. Change import Form from "@rjsf/core"; to import Form from "@rjsf/material-ui"; or import Form from "@rjsf/bootstrap-4";
  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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
JonSilvercommented, Feb 25, 2021

I can confirm that a custom DescriptionField supplied to the Form component in the fields prop is ignored and unused in the Bootstrap-4 variant.

0reactions
heath-freenomecommented, Aug 28, 2022

Fixed in the v5 beta, see the 5.x migration guide

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found