From cf3c19b507ed8ac08c5ccc560f2e262f87203799 Mon Sep 17 00:00:00 2001 From: AAA <35992542+TNTcraftHIM@users.noreply.github.com> Date: Tue, 10 Nov 2026 03:57:31 -0400 Subject: [PATCH] fix(ui): focus dialog headings before action guidance --- src/client/channel/components/ChannelSettingsDialog.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/channel/components/ChannelSettingsDialog.tsx b/src/client/channel/components/ChannelSettingsDialog.tsx index 9312c5256..b24eac57e 100644 --- a/src/client/channel/components/ChannelSettingsDialog.tsx +++ b/src/client/channel/components/ChannelSettingsDialog.tsx @@ -28,7 +28,9 @@ export function ChannelSettingsDialog({ title, caption, compact = false, error = return ownerDocument && createPortal( { if (!event.currentTarget.open) onClose(); }}>
-
{caption &&

{caption}

}

{title}

+ {/* Start at the heading so automatic focus does not open an action's tooltip. */} +
{caption &&

{caption}

}

{ element?.setAttribute("autofocus", ""); }}>{title}

dialog.current?.close()} />