mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
Fix:修复概要节点文本编辑中按回车结束时,相应的节点高亮框会错位显示
This commit is contained in:
parent
e2403ae433
commit
487aa38216
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user