From 3373e03a9b68003aba7e77c1140bc57d8abdfd79 Mon Sep 17 00:00:00 2001 From: Rodriguez Avila Humberto Date: Thu, 26 Sep 2024 11:14:18 +0200 Subject: [PATCH] feat: enable autofocus to the `new chatflow title` to improve usability 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 c4ddffc6e2e..1f6fa82ecbc 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}