Fix:修复编辑过节点文本后,再使用滚轮或快捷键缩放画布时上次被编辑的节点会进入编辑状态,以及思维导图快捷键会失效的问题

This commit is contained in:
街角小林 2024-07-08 16:52:53 +08:00
parent 159a4a202c
commit 9b55d051dc

View File

@ -187,7 +187,8 @@ export default class TextEdit {
// 处理画布缩放
onScale() {
if (!this.currentNode) return
const node = this.getCurrentEditNode()
if (!node) return
if (this.mindMap.richText) {
this.mindMap.richText.cacheEditingText =
this.mindMap.richText.getEditText()
@ -197,7 +198,7 @@ export default class TextEdit {
this.showTextEdit = false
}
this.show({
node: this.currentNode,
node,
isFromScale: true
})
}