We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 983ed0d commit 4605d83Copy full SHA for 4605d83
src/lib/forms/fieldComponents.js
@@ -37,7 +37,9 @@ export const fieldCommonProps = {
37
const showHideComponent = (Component, id) => {
38
const ShowHideComponent = ({ hidden, ...props }) => {
39
if (props.disabled && props.required) {
40
- throw new Error(`Cannot make field component ${id} both required and disabled`);
+ console.warn(
41
+ `Field component ${id} is marked as required but also disabled, so it is omitted from HTML constraint validation.`
42
+ );
43
}
44
if (hidden) return null;
45
return <Component {...props} />;
0 commit comments