-
Hi, I am wondering what type can I use for rules prop, when implementing my own RHF component. When I use this:
then my custom validate function does not know what the field value is
I tried creating my custom type to fix this (using FieldPathByValue):
but then I get error on Controller when passing the rules prop:
How would you solve this issue? Is it a known problem or am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok si this was my own fault. I just must use (and supply) FieldName generic type.
then I must create TextFieldElement component like this
|
Beta Was this translation helpful? Give feedback.
Ok si this was my own fault. I just must use (and supply) FieldName generic type.
then I must create TextFieldElement component like this