Closed ahmedrowaihi closed 2 months ago
couldn't run tests
Error: Cannot find module 'react-dom'
ah, it was due to my workspace
I will fix it
@jsun969 couldn't write a test for this case to mimick file upload
but I confirm that the affect is only happening if you add overrideFieldOnChange
so merging this won't create issues to existing behavior
and the new behavior is working on real case
couldn't write a test for this case to mimick file upload
That's fine. I'll test it later and merge this. Thx a lot for your help!
@jsun969 hey boss, is this good ? I have a task on my work that is waiting for this PR :'D
@jsun969 hey boss, is this good ? I have a task on my work that is waiting for this PR :'D
yea all good. I'm busy these days and can't test it soon. I'll merge it rn and create a beta version for u if your work is urgent. Sry for the late reply. ๐
@ahmedrowaihi Please use npm/yarn/pnpm add react-hook-form-antd@beta
to install the beta version (1.1.1-beta.1). If it works properly in your project, tell me and I'll release a stable version ASAP.
@jsun969 thank you so much, it worked
@all-contributors please add @ahmedrowaihi for code
@jsun969
I've put up a pull request to add @ahmedrowaihi! :tada:
@all-contributors please add @yorman2401 for bug
@jsun969
I've put up a pull request to add @yorman2401! :tada:
Hi @ahmedrowaihi . CI is not working. Do you think it's because of this fix?
This fix didn't touch the test files...
I see the action logs, something failed in there
I don't think they are related
Ahh thx. I'll double check it.
Probably driven by this step, it's not installing same versions used in lock ?
Yea looks like a problem. I can try to update pnpm version.
I have released 1.1.1 as the latest version. Much appreciate for your help! @ahmedrowaihi
allow override default
Field.onChange
this could be used to manually set Upload or any other fields on-change
for example, developer can use,
setValue
fromuseFormContext
manually to alter form stateexample for
Upload
fromantd
close #83