refinedev / refine

A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility.
https://refine.dev
MIT License
25.92k stars 1.96k forks source link

[BUG] `useDrawerForm`'s `submit` and `form` props are not working. #6082

Open alicanerdurmaz opened 3 days ago

alicanerdurmaz commented 3 days ago

Describe the bug

The useDrawerForm prop types extend the UseFormConfig type from "sunflower-antd," which includes the submit and form fields, but useDrawerForm does not use these fields.

Steps To Reproduce

useDrawerForm prop types file path: https://github.com/refinedev/refine/blob/master/packages/antd/src/hooks/form/useDrawerForm/useDrawerForm.ts#L23

Expected behavior

useDrawerForm shouldn't have these fields.

Packages

Additional Context

No response