mirror of
https://github.com/bretzel-app/crumbs.git
synced 2026-10-12 20:06:57 +02:00
fix: remove stopPropagation on editor card that blocked toolbar dropdown close
The editor card's onpointerdown stopPropagation prevented the FormattingToolbar's document-level pointerdown listener from detecting clicks outside the dropdown. Since both overlay handlers already use e.target === e.currentTarget to ignore bubbled events, no stopPropagation is needed on the card. https://claude.ai/code/session_018DYwSysqysMmaRi5XkqTpo
This commit is contained in:
@@ -255,7 +255,6 @@
|
||||
<div
|
||||
class="mx-4 flex w-full max-w-xl md:max-w-2xl flex-col overflow-hidden rounded-sm border border-[var(--border)] shadow-[var(--card-shadow)] animate-[pop-in_150ms_ease-out]"
|
||||
style={bgStyle}
|
||||
onpointerdown={(e) => e.stopPropagation()}
|
||||
onkeydown={(e) => { e.stopPropagation(); handleKeydown(e); }}
|
||||
data-testid="note-editor"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user