Skip to content

Commit eebb630

Browse files
committed
v1.19.9
1 parent 30203ca commit eebb630

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

components/Abstract/SelectionBase.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import FormControlLabel from '@material-ui/core/FormControlLabel/FormControlLabel';
1+
import FormControlLabel, { FormControlLabelProps } from '@material-ui/core/FormControlLabel/FormControlLabel';
22
import Typography from '@material-ui/core/Typography/Typography';
33
import FieldCoreBase, { IPropsFieldBase } from '@react-form-fields/core/components/FieldCoreBase';
44
import ValidationContextRegister from '@react-form-fields/core/components/ValidationContextRegister';
@@ -13,6 +13,7 @@ export interface IPropsSelectionBase extends IPropsFieldBase {
1313
disabled?: boolean;
1414
checked: boolean;
1515
helperText?: React.ReactNode;
16+
FormControlLabelProps: Partial<FormControlLabelProps>;
1617
}
1718

1819
interface IProps extends IPropsSelectionBase {
@@ -51,13 +52,14 @@ export default class FieldSelectionBase extends FieldCoreBase<IProps> {
5152
}
5253

5354
render() {
54-
const { value, label, checked, helperText, classes, disabled, Component } = this.props;
55+
const { value, label, checked, helperText, classes, disabled, Component, FormControlLabelProps } = this.props;
5556

5657
return (
5758
<React.Fragment>
5859
<ValidationContextRegister field={this} />
5960

6061
<FormControlLabel
62+
{...(FormControlLabelProps || {})}
6163
className={helperText ? classes.containerAlign : null}
6264
control={
6365
checked ? //force recreation

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"validation",
1111
"material"
1212
],
13-
"version": "1.19.8",
13+
"version": "1.19.9",
1414
"main": "./dist/index.js",
1515
"types": "./dist/index.d.ts",
1616
"license": "MIT",

0 commit comments

Comments
 (0)