mirror of
https://github.com/zhigang1992/react.git
synced 2026-02-06 17:19:02 +08:00
fix(modal): set body hidden false on close modal
This commit is contained in:
@@ -47,6 +47,7 @@ const Modal: React.FC<React.PropsWithChildren<ModalProps>> = ({
|
||||
|
||||
const closeModal = () => {
|
||||
setVisible(false)
|
||||
setBodyHidden(false)
|
||||
onClose && onClose()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user