Replies: 1 comment 1 reply
-
assume you are using v6, i think if you use Controller's render prop, it should solve the problem. <Controller render={(props) =>
<CustomInput
onChange={props.onChange}
onBlur={props.onBlur}
value={props.value}
labelText="Disabled"
id="disabled"
formControlProps={{
fullWidth: true
}}
/>}
/> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am working with creative-tim template based on MUI + React: https://www.creative-tim.com/product/material-dashboard-react.
Its have CustomInput component that compose mui input components: https://demos.creative-tim.com/material-dashboard-react/#/documentation/inputs
The problem (short version):
After trying a lot of examples from the docs I still do not succeed to register this input with predefined value via fetch.
How can I add support to this kind of custom input?
The problem (long version):
This is the CustomInput code:
This is my config + fetch code:
And this is my first try:
Than I saw an error about ref issue:

So I tried to create the same component but with ref support:
The full code:
It fixed the error but still the register did not work :(
Can you please advise me what am I missing here?
Beta Was this translation helpful? Give feedback.
All reactions