mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 14:04:47 +08:00
fix: 修复设置readonly如果处于编辑态还能编辑的问题
This commit is contained in:
@@ -463,6 +463,10 @@ class MindMap {
|
||||
if (this.opt.readonly) {
|
||||
// 取消当前激活的元素
|
||||
this.execCommand('CLEAR_ACTIVE_NODE')
|
||||
// 如果处于编辑态,要隐藏所有的编辑框
|
||||
if (this.renderer.textEdit.isShowTextEdit()) {
|
||||
this.renderer.textEdit.hideEditTextBox()
|
||||
}
|
||||
}
|
||||
this.emit('mode_change', mode)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user