Skip to content

Commit d61d393

Browse files
ENG-954 Re-add focus removal after node tag creation (#492)
* Fix: Remove focus from block after node creation Co-authored-by: mclicks <[email protected]> * Refactor: Remove document click from CreateNodeDialog, add to DiscourseNodeMenu Co-authored-by: mclicks <[email protected]> * move to end, add comment --------- Co-authored-by: Cursor Agent <[email protected]>
1 parent 2299e0a commit d61d393

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/roam/src/components/DiscourseNodeMenu.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ const NodeMenu = ({
130130
};
131131
// timeout required to ensure the block is updated
132132
setTimeout(() => void addTagToBlock(), 100);
133+
134+
// Remove focus from the block so user can see tag css immediately
135+
document.body.click();
133136
}
134137
onClose();
135138
},

0 commit comments

Comments
 (0)