You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I try to pass customProps to MuiFieldSelect from @react-awesome-query-builder/mui library to customize renderOperator. I want show operator options as LTR in my RTL MUI project.
Passing customProps to MuiFieldAutocomplete works.
To Reproduce
For example, just trying to pass backgroundColor: yellow to customProps doesnt work:
// passing settings to config.settings: {
...MuiConfig.settings,// customProps works for renderField, but not for renderOperatorrenderField: (fieldProps)=><MuiFieldAutocomplete{...fieldProps}customProps={{style: {backgroundColor: 'yellow'}}}/>,renderOperator: (operatorProps)=><MuiFieldSelect{...operatorProps}customProps={{style: {backgroundColor: 'yellow'}}}/>,}
As you can see, only renderField receive yellow color:
Expected behavior
Both MuiFieldSelect and MuiFieldAutocomplete declares that they receive FieldProps, but only MuiFieldAutocomplete uses customProps in it.
I see in implementation that MuiFieldAutocomplete does pass customProps (inside "rest"):
Describe the bug
I try to pass customProps to MuiFieldSelect from @react-awesome-query-builder/mui library to customize renderOperator. I want show operator options as LTR in my RTL MUI project.
Passing customProps to MuiFieldAutocomplete works.
To Reproduce
For example, just trying to pass
backgroundColor: yellow
to customProps doesnt work:As you can see, only renderField receive yellow color:

Expected behavior
Both MuiFieldSelect and MuiFieldAutocomplete declares that they receive FieldProps, but only MuiFieldAutocomplete uses customProps in it.
I see in implementation that MuiFieldAutocomplete does pass customProps (inside "rest"):
react-awesome-query-builder/packages/mui/modules/widgets/core/MuiFieldAutocomplete.jsx
Lines 39 to 43 in d17da01
but in MuiFieldSelect the customProps is not deconstructed at all:
react-awesome-query-builder/packages/mui/modules/widgets/core/MuiFieldSelect.jsx
Lines 8 to 11 in d17da01
The text was updated successfully, but these errors were encountered: