From 34105a355c0e920b5d015d1ac0975ae53b4eed78 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 13 Oct 2023 22:19:16 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- experiments/outline-editor/editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index 893b3ce..1ae6492 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -281,13 +281,13 @@ var Outline = { indent = node node = 'focused' } var cur = this.get(node) - if(!cur){ + if(!cur){ return } var siblings = this.get(node, 'siblings') // deindent... if(!indent){ var parent = this.get(node, 'parent') - if(!parent.classList.contains('.outline')){ + if(parent != this.outline){ var children = siblings .slice(siblings.indexOf(cur)+1) parent.after(cur)