Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

actually fix focus (#4847)

teo1a3d369e7a29
diff --git a/apps/web/src/features/channel/CreateChannelModal.tsx b/apps/web/src/features/channel/CreateChannelModal.tsx
index 3b3426bf4f..dd51985641 100644
--- a/apps/web/src/features/channel/CreateChannelModal.tsx
+++ b/apps/web/src/features/channel/CreateChannelModal.tsx
@@ -20,7 +20,6 @@ export function openNewChannelModal() {
}
export function CreateChannelModal() {
- let nameInputRef: HTMLInputElement | undefined;
const { replaceOrInsertSplit } = useSplitLayout();
const { users: recipientOptions } = useCombinedRecipients();
const createChannelMutation = useCreateChannelMutation();
@@ -81,10 +80,6 @@ export function CreateChannelModal() {
<Dialog
open={newChannelModalOpen()}
onOpenChange={(open) => !open && close()}
- onOpenAutoFocus={(event) => {
- event.preventDefault();
- nameInputRef?.focus();
- }}
>
<Panel depth={2} class="rounded-xl *:max-h-[75vh]">
<Panel.Body>
@@ -95,6 +90,7 @@ export function CreateChannelModal() {
as={Button}
size="icon-sm"
label="Close"
+ tabIndex={-1}
disabled={createChannelMutation.isPending}
>
<XIcon />
@@ -112,7 +108,6 @@ export function CreateChannelModal() {
class="size-5 shrink-0 text-ink-placeholder"
/>
<input
- ref={nameInputRef}
id="new-channel-name"
type="text"
value={name()}