What you were expecting:
Show view should have compiled with no warnings.
What happened instead:
The warning keeps appearing.
Steps to reproduce:
Related code:
export const PresetShow = (props) => (
<Show {...props}>
<TabbedShowLayout>
<Tab label="content">
<TextField source="content" />
</Tab>
<Tab label="summary">
<TextField source="id" />
<TextField source="title" />
<TextField source="language" />
<TextField source="category" />
<DateField source="date" label="Published at" />
</Tab>
</TabbedShowLayout>
</Show>
);
Environment
fullWidth prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase fullwidth instead. If you accidentally passed it from a parent component, remove it from the DOM element.This warning still exists when using something as simple as:
<Show>
<SimpleShowLayout>
<TextField source="title" />
</SimpleShowLayout>
</Show>
Yes, because the fix has not been released yet. It will be 2.0.4
index.js:1375 Warning: React does not recognize the fullWidth prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase fullwidth instead. If you accidentally passed it from a parent component, remove it from the DOM element.
What must I do here? It was working before without error.
@besiwims Commenting on a closed issue from 2018 isn't the best way to get help. Try StackOverflow for troubleshooting.
Most helpful comment
index.js:1375 Warning: React does not recognize the
fullWidthprop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercasefullwidthinstead. If you accidentally passed it from a parent component, remove it from the DOM element.What must I do here? It was working before without error.