conform
conform copied to clipboard
Revalidation failure of ant-design file input
Describe the bug and the expected behavior
Revalidating a file using an ant-design <Input type=file /> crashes, see the example below.
It most certainly is an issue in ant-design or rc-input, however I'd appreciate your insights or if any workaround is possible. Using a plain <input type="file" /> works fine.
Thanks,
Conform version
1.2.2
Steps to Reproduce the Bug or Issue
https://codesandbox.io/p/sandbox/basic-usage-antd-5-24-6-forked-42jmwl?file=%2Fdemo.tsx%3A14%2C65
Steps to reproduce:
- pick a file whose size is greater than 1MB, the validation does its job and the field error is shown.
- pick a file whose size is lower than 1MB, the revalidation crashes with the following error message:
InvalidStateError
Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string.
What browsers are you seeing the problem on?
No response
Screenshots or Videos
Additional context
No response