fix: modal core onClose (#5018)

This commit is contained in:
Anmol Singh Bhatia 2024-07-03 11:34:52 +05:30 committed by GitHub
parent 3dc933f0e8
commit 0363057d9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@ export const ModalCore: React.FC<Props> = (props) => {
return (
<Transition.Root show={isOpen} as={Fragment}>
<Dialog as="div" className="relative z-20" onClose={() => handleClose && handleClose}>
<Dialog as="div" className="relative z-20" onClose={() => handleClose && handleClose()}>
<Transition.Child
as={Fragment}
enter="ease-out duration-300"