Skip to content

Commit

Permalink
Fix:修复概要节点文本编辑中按回车结束时,相应的节点高亮框会错位显示
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglin2 committed Apr 8, 2024
1 parent e2403ae commit 487aa38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions simple-mind-map/src/core/render/Render.js
Original file line number Diff line number Diff line change
Expand Up @@ -1859,6 +1859,8 @@ class Render {

// 高亮节点或子节点
highlightNode(node, range) {
// 如果当前正在渲染,那么不进行高亮,因为节点位置可能不正确
if (this.isRendering) return
const { highlightNodeBoxStyle = {} } = this.mindMap.opt
if (!this.highlightBoxNode) {
this.highlightBoxNode = new Polygon()
Expand Down

0 comments on commit 487aa38

Please sign in to comment.