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,
user
)
.then((res) => {
.then(() => {
setToastAlert({
type: "success",
title: "Success!",
@ -323,7 +323,7 @@ export const CreateUpdateIssueModal: React.FC<IssuesModalProps> = ({
return (
<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
as={React.Fragment}
enter="ease-out duration-300"