Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix: create channel modal focus (#4841)
teo5a74cfc4f5cf
diff --git a/apps/web/src/features/channel/CreateChannelModal.tsx b/apps/web/src/features/channel/CreateChannelModal.tsxindex 3bdf898e49..818a55d677 100644--- a/apps/web/src/features/channel/CreateChannelModal.tsx+++ b/apps/web/src/features/channel/CreateChannelModal.tsx@@ -20,6 +20,7 @@ export function openNewChannelModal() {}export function CreateChannelModal() {+ let nameInputRef: HTMLInputElement | undefined;const { replaceOrInsertSplit } = useSplitLayout();const { users: recipientOptions } = useCombinedRecipients();const createChannelMutation = useCreateChannelMutation();@@ -80,6 +81,10 @@ export function CreateChannelModal() {<Dialogopen={newChannelModalOpen()}onOpenChange={(open) => !open && close()}+ onOpenAutoFocus={(event) => {+ event.preventDefault();+ nameInputRef?.focus();+ }}><Panel depth={2} class="rounded-xl *:max-h-[75vh]"><Panel.Body>@@ -107,6 +112,7 @@ export function CreateChannelModal() {class="size-5 shrink-0 text-ink-placeholder"/><input+ ref={nameInputRef}id="new-channel-name"type="text"value={name()}@@ -115,7 +121,6 @@ export function CreateChannelModal() {setError(undefined);}}placeholder="Channel name"- autofocusaria-invalid={error() === 'Enter a channel name'}class="h-10 w-full border-none bg-transparent px-0 text-xl font-medium text-ink outline-none placeholder:text-ink-placeholder focus:ring-0"/>