editor: prevent edge case error
This commit is contained in:
parent
3b695509e9
commit
796ee2fdc6
1 changed files with 1 additions and 1 deletions
|
|
@ -389,7 +389,7 @@ class Editor {
|
|||
|
||||
} else if (e.key === 'ArrowRight') {
|
||||
|
||||
if (!curWidget.children[0]._not_editable) {
|
||||
if (curWidget.children[0] && !curWidget.children[0]._not_editable) {
|
||||
toSelect = curWidget.children[0]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue