Closing of dialog when we click around the dialog (#1364)

This commit is contained in:
Khrystyna Derenivska 2023-07-12 09:09:40 +03:00 committed by GitHub
parent 5773ff2afd
commit 82ff786666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,7 @@ export const CreateUpdateIssueModal: React.FC<IssuesModalProps> = ({
payload, payload,
user user
) )
.then((res) => { .then(() => {
setToastAlert({ setToastAlert({
type: "success", type: "success",
title: "Success!", title: "Success!",
@ -323,7 +323,7 @@ export const CreateUpdateIssueModal: React.FC<IssuesModalProps> = ({
return ( return (
<Transition.Root show={isOpen} as={React.Fragment}> <Transition.Root show={isOpen} as={React.Fragment}>
<Dialog as="div" className="relative z-20" onClose={() => {}}> <Dialog as="div" className="relative z-20" onClose={() => handleClose()}>
<Transition.Child <Transition.Child
as={React.Fragment} as={React.Fragment}
enter="ease-out duration-300" enter="ease-out duration-300"