Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix: prevent highlight popup from stealing focus on Firefox. fixes #2510 #997

Claude11dfe74d5192
diff --git a/packages/shared-react/components/BookmarkHtmlHighlighter.tsx b/packages/shared-react/components/BookmarkHtmlHighlighter.tsx
index 0c8298ff..f805ad9b 100644
--- a/packages/shared-react/components/BookmarkHtmlHighlighter.tsx
+++ b/packages/shared-react/components/BookmarkHtmlHighlighter.tsx
@@ -70,6 +70,7 @@ const HighlightForm: React.FC<HighlightFormProps> = ({
<PopoverContent
side={isMobile ? "bottom" : "top"}
className="w-80 space-y-3 p-3"
+ onOpenAutoFocus={(e) => e.preventDefault()}
>
<div>
<label className="mb-2 block text-sm font-medium">Color</label>