mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10:45 +00:00
CE-604 Add error box below BooleanFieldSwitch
This commit is contained in:
@ -88,7 +88,14 @@ function QDynamicFormField({
|
|||||||
if (type === "checkbox")
|
if (type === "checkbox")
|
||||||
{
|
{
|
||||||
getsBulkEditHtmlLabel = false;
|
getsBulkEditHtmlLabel = false;
|
||||||
field = (<BooleanFieldSwitch name={name} label={label} value={value} isDisabled={isDisabled} />);
|
field = (<>
|
||||||
|
<BooleanFieldSwitch name={name} label={label} value={value} isDisabled={isDisabled} />
|
||||||
|
<Box mt={0.75}>
|
||||||
|
<MDTypography component="div" variant="caption" color="error" fontWeight="regular">
|
||||||
|
{!isDisabled && <div className="fieldErrorMessage"><ErrorMessage name={name} render={msg => <span data-field-error="true">{msg}</span>} /></div>}
|
||||||
|
</MDTypography>
|
||||||
|
</Box>
|
||||||
|
</>);
|
||||||
}
|
}
|
||||||
else if (type === "ace")
|
else if (type === "ace")
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user