Fix:修复概要节点文本编辑中按回车结束时,相应的节点高亮框会错位显示

This commit is contained in:
街角小林 2024-04-08 18:20:23 +08:00
parent e2403ae433
commit 487aa38216

View File

@ -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()