Open rin-st opened 12 months ago
Hi @rin-st , we have the same issue, but I have solved this issue by copying this component to my local (without changing) and creating my own component.
https://github.com/jsun969/react-hook-form-antd/blob/main/src/FormItem.tsx
and it works as it should.
Thank you @ahmadnzr ! But I think it's not a solution. You'll need to do it on every update of the lib. I also found a solution using antd Form.Item + react-hook-form Controller, but with this lib it would be easier
Component doesn't change status of antd Select depending on error
Expected behavior: passing status: 'error' to Select if field has error, so border will be red