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.

fix(md): fix addd link btn not working (#4437)

Seamusbcd3e54cd884
diff --git a/js/app/packages/core/component/LexicalMarkdown/plugins/links/linksPlugin.ts b/js/app/packages/core/component/LexicalMarkdown/plugins/links/linksPlugin.ts
index 0ff0b48830..892786d226 100644
--- a/js/app/packages/core/component/LexicalMarkdown/plugins/links/linksPlugin.ts
+++ b/js/app/packages/core/component/LexicalMarkdown/plugins/links/linksPlugin.ts
@@ -347,10 +347,6 @@ function $tryInsertLink(
return false;
}
- if (document.activeElement !== editor.getRootElement()) {
- return false;
- }
-
if (insertType === 'collapsed' && onCreate) {
onCreate({
selection: window.getSelection(),
diff --git a/js/app/packages/ui/components/Dropdown.tsx b/js/app/packages/ui/components/Dropdown.tsx
index d8bddda837..33555e5669 100644
--- a/js/app/packages/ui/components/Dropdown.tsx
+++ b/js/app/packages/ui/components/Dropdown.tsx
@@ -115,7 +115,7 @@ function DropdownContent(props: DropdownContentProps) {
>
<KobalteDropdownMenu.Content
class={cn(
- 'rounded-xl size-auto z-action-menu menu-open-animation',
+ 'rounded-xl size-auto z-action-menu menu-open-animation shadow-menu',
local.class
)}
depth={local.depth ?? 2}