Skip to content

Commit

Permalink
[fix] fix delete bug
Browse files Browse the repository at this point in the history
  • Loading branch information
WindLX committed Dec 12, 2023
1 parent e2a71bd commit 6566a85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pap",
"private": true,
"version": "0.2.14",
"version": "0.2.15",
"type": "module",
"scripts": {
"dev": "vite --host",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Markdown/MdBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async function handleBehaviorAsync(e: KeyboardEvent) {
console.log(oldRange.endOffset)
const rangePos = oldRange.endOffset
setTimeout(() => {
handleFocus(rangePos)
handleFocus(rangePos - 1)
}, 50)
}
}
Expand Down

0 comments on commit 6566a85

Please sign in to comment.