EkaLinMan

Results 3 comments of EkaLinMan
trafficstars

We found a related issue in RHF, hoping it can help, thanks! https://github.com/react-hook-form/react-hook-form/issues/1749

We found the root cause, RHFM passes the empty object as the rule and leads to the issue, please check the demo, thanks! https://codesandbox.io/p/sandbox/broken-cookies-38y28p ![image](https://github.com/user-attachments/assets/8209afe7-0cff-478d-8034-a1be746416bb)

@sadik-malik, thanks for your reply, we overrode the `required` rule to fix this issue, this way also works. ```{required: required ? "This field is required" : false}``` But I'm afraid...