fix: preserve cursor position on code editor saves (#683)

This commit is contained in:
Jeremy 2025-01-08 19:31:40 +05:30 committed by GitHub
parent 7a25f953c7
commit c5a57fd7a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -428,9 +428,7 @@ function PureBlock({
<BlockCloseButton />
<div className="flex flex-col">
<div className="font-medium">
{document?.title ?? block.title}
</div>
<div className="font-medium">{block.title}</div>
{isContentDirty ? (
<div className="text-sm text-muted-foreground">