fix: create issue modal bugs (#257)

This commit is contained in:
Aaryan Khandelwal 2023-02-08 23:58:53 +05:30 committed by GitHub
parent 8e3541b947
commit 4ffa31fd02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 36 additions and 67 deletions

View file

@ -245,7 +245,12 @@ const SingleModule: React.FC<UserAuth> = (props) => {
title="Create a new issue"
description="Click to create a new issue inside the module."
Icon={PlusIcon}
action={openCreateIssueModal}
action={() => {
const e = new KeyboardEvent("keydown", {
key: "c",
});
document.dispatchEvent(e);
}}
/>
<EmptySpaceItem
title="Add an existing issue"