From 9f6fcb9cf6b7e0d4dac1118fd7bf46a8aa893cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Humberto=20Rodr=C3=ADguez=20A=2E?= Date: Thu, 26 Sep 2024 16:08:35 +0200 Subject: [PATCH] feat: enable autofocus to the `new chatflow title` to improve usability (#3260) This dialog has only one input and it is the primary one, there is no need for an extra click to be able to set the title --- packages/ui/src/ui-component/dialog/SaveChatflowDialog.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/ui/src/ui-component/dialog/SaveChatflowDialog.jsx b/packages/ui/src/ui-component/dialog/SaveChatflowDialog.jsx index c4ddffc6..1f6fa82e 100644 --- a/packages/ui/src/ui-component/dialog/SaveChatflowDialog.jsx +++ b/packages/ui/src/ui-component/dialog/SaveChatflowDialog.jsx @@ -24,12 +24,15 @@ const SaveChatflowDialog = ({ show, dialogProps, onCancel, onConfirm }) => { onClose={onCancel} aria-labelledby='alert-dialog-title' aria-describedby='alert-dialog-description' + disableRestoreFocus // needed due to StrictMode > {dialogProps.title}