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(share): tab + enter on share button crashing the app (#2767)
teo58f4825e2c17
diff --git a/js/app/packages/core/component/TopBar/ShareButton.tsx b/js/app/packages/core/component/TopBar/ShareButton.tsxindex ea1a6df723..e914b5ae31 100644--- a/js/app/packages/core/component/TopBar/ShareButton.tsx+++ b/js/app/packages/core/component/TopBar/ShareButton.tsx@@ -1096,7 +1096,16 @@ export function ShareOptions(props: {return (<DropdownMenu open={isOpen()} onOpenChange={setIsOpen}>- <DropdownMenu.Trigger disabled={props.disabled}>+ <DropdownMenu.Trigger+ disabled={props.disabled}+ on:keydown={(e: KeyboardEvent) => {+ if (e.key === 'Enter' || e.key === ' ') {+ e.stopPropagation();+ e.preventDefault();+ setIsOpen((prev) => !prev);+ }+ }}+ ><Buttondisabled={props.disabled}class={`min-w-[67px] py-1 pl-2 pr-1 rounded-xs flex items-center gap-1 ${props.noBorder ? 'border-0 sm:border' : ''}`}