Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/StickyNote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ export function StickyNote({ id, text, note, onSave, onClose, onDelete, onPin }:
const handleSave = () => onSave(id, value);

return createPortal(
<div
<dialog
ref={noteRef}
className="sticky-note"
style={{ left: pos.x, top: pos.y }}
role="dialog"
open
aria-label="Nota pessoal"
onMouseDown={handleMouseDown}
>
Expand Down Expand Up @@ -111,7 +111,7 @@ export function StickyNote({ id, text, note, onSave, onClose, onDelete, onPin }:
placeholder="Escreva sua nota aqui…"
rows={4}
/>
</div>,
</dialog>,
document.body
);
}