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

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


The following commit(s) were added to refs/heads/main by this push:
     new 5817515c3 feat(config-ui): support use esc to close dialog (#6070)
5817515c3 is described below

commit 5817515c34f1ddfe414779e640ab3d83ea8e6552
Author: 青湛 <[email protected]>
AuthorDate: Wed Sep 13 16:16:05 2023 +1200

    feat(config-ui): support use esc to close dialog (#6070)
---
 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