fix: 修复设置readonly如果处于编辑态还能编辑的问题
This commit is contained in:
parent
b895a58194
commit
eeeae7d0e2
@ -463,6 +463,10 @@ class MindMap {
|
|||||||
if (this.opt.readonly) {
|
if (this.opt.readonly) {
|
||||||
// 取消当前激活的元素
|
// 取消当前激活的元素
|
||||||
this.execCommand('CLEAR_ACTIVE_NODE')
|
this.execCommand('CLEAR_ACTIVE_NODE')
|
||||||
|
// 如果处于编辑态,要隐藏所有的编辑框
|
||||||
|
if (this.renderer.textEdit.isShowTextEdit()) {
|
||||||
|
this.renderer.textEdit.hideEditTextBox()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.emit('mode_change', mode)
|
this.emit('mode_change', mode)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user