We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb761e7 commit b434f1cCopy full SHA for b434f1c
web/src/components/MemoEditor/Editor/SuggestionsPopup.tsx
@@ -42,7 +42,10 @@ export function SuggestionsPopup<T>({
42
<div
43
key={getItemKey(item, i)}
44
ref={i === selectedIndex ? selectedItemRef : null}
45
- onMouseDown={() => onItemSelect(item)}
+ onMouseDown={(e) => {
46
+ onItemSelect(item);
47
+ e.preventDefault();
48
+ }}
49
className={cn(
50
"rounded p-1 px-2 w-full text-sm cursor-pointer transition-colors select-none",
51
"hover:bg-accent hover:text-accent-foreground",
0 commit comments