mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
docs: Fix demo (#22569)
This commit is contained in:
parent
c7add36de6
commit
f8a342f415
@ -32,7 +32,7 @@ interface ModalFormProps {
|
||||
}
|
||||
|
||||
// reset form fields when modal is form, closed
|
||||
const useResetFormOnCloseModal = ({ visible }) => {
|
||||
const useResetFormOnCloseModal = ({ form, visible }) => {
|
||||
const prevVisibleRef = useRef();
|
||||
useEffect(() => {
|
||||
prevVisibleRef.current = visible;
|
||||
|
Loading…
Reference in New Issue
Block a user