This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch feat-6051
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 12d1607144e285ea4cd5f61383852312129c5fb6
Author: mintsweet <[email protected]>
AuthorDate: Wed Sep 13 14:11:57 2023 +1200

    feat(config-ui): support use esc to close dialog
---
 config-ui/src/components/dialog/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config-ui/src/components/dialog/index.tsx 
b/config-ui/src/components/dialog/index.tsx
index a5d79f2b5..ff34e7b9d 100644
--- a/config-ui/src/components/dialog/index.tsx
+++ b/config-ui/src/components/dialog/index.tsx
@@ -48,7 +48,7 @@ export const Dialog = ({
   onOk,
 }: Props) => {
   return (
-    <S.Container isOpen={isOpen} style={style}>
+    <S.Container isOpen={isOpen} style={style} canEscapeKeyClose 
onClose={onCancel}>
       {title && (
         <S.Header className={Classes.DIALOG_HEADER}>
           <h2>{title}</h2>

Reply via email to