Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit 06c0ee6

Browse files
NoamELBfacebook-github-bot
authored andcommitted
Finish modernizing convertFromHTMLToContentBlocks - max nesting bug fix
Summary: The old convertFromHTMLToContentBlocks is capping depth to 4, v2 doesn't cap the depth. DraftEditorContents-core component didn't handle cases of depth bigger then 4. Similar to the current UI behavior, depth bigger then 4 will be shown as the same depth of 4. Reviewed By: flarnie Differential Revision: D7816688 fbshipit-source-id: 8989f0c5fb03bfcffc1e50575e35986d2491c3c2
1 parent d24b802 commit 06c0ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component/contents/DraftEditorContents-core.react.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const getListItemClasses = (
5858
'public/DraftStyleDefault/depth1': depth === 1,
5959
'public/DraftStyleDefault/depth2': depth === 2,
6060
'public/DraftStyleDefault/depth3': depth === 3,
61-
'public/DraftStyleDefault/depth4': depth === 4,
61+
'public/DraftStyleDefault/depth4': depth >= 4,
6262
'public/DraftStyleDefault/listLTR': direction === 'LTR',
6363
'public/DraftStyleDefault/listRTL': direction === 'RTL',
6464
});

0 commit comments

Comments
 (0)