facebookarchive/draft-js

Indenting list block of one type inside the other

Open

#443 aperta il 5 giu 2016

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)JavaScript (2646 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (22.554 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

If I create a OL of 2 items and change depth of 2nd item to 2, like this:

1. ITEM1
      2. ITEM2

If I change type of 2nd item to UL it looses it depth:

1. ITEM1

2. ITEM2

But now if I try to indent second item, it works

1. ITEM1

    2. ITEM2

While indenting its checked that block above is list, but its not checked if its list of same type. Also, please find gif attached. I can create a PR for the fix.

Guida contributor