editor-js / list

Advanced List tool for the Editor.js.
MIT License
48 stars 47 forks source link

Outdenting item moves the item #29

Closed alexanderjulmer closed 1 day ago

alexanderjulmer commented 3 years ago

Expected behavior: Outdenting an indented item should outdent the item and make the following items children of the now outdented item. Example:

1. abc
  1. def
  2. ghi <-- Outdent by hitting SHIFT+TAB
  3. jkl 
1. abc
  1. def
2. ghi <-- Outdented and numbered according to level
  1. jkl <-- Remains indented but now as child of outdented item 'ghi'

Actual behavior: Outdenting an indented item moves the item below the indented items and leaves the children untouched. Example (before state as above)

1. abc
  1. def
  2. jkl
2. ghi <-- Outdented but moved to the bottom 

Reasoning: Outdenting as described "Expected behaviour" is the default for all major text editors.

e11sy commented 1 day ago

solved since List 2.0.0