Skip to content

Commit

Permalink
fix:del
Browse files Browse the repository at this point in the history
  • Loading branch information
caiwuu committed Jul 3, 2023
1 parent 25330fe commit 8cd09d2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/core/model/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,14 @@ export default class Content extends Component {

range.setStart(startContainer, 0)
range.collapse(true)
setTimeout(() => {
newContainer.parent.parent.blockComponent.update().then(() => {
range.updateCaret()
})
}, 0);
this.update(commonPath, range).then(() => {
range.updateCaret()
})
// setTimeout(() => {
newContainer.parent.parent.blockComponent.update().then(() => {
range.updateCaret()
})
// }, 0);
} else {
this.onContentDelete(range.startContainer, range)
}
Expand Down

0 comments on commit 8cd09d2

Please sign in to comment.