Skip to content

Commit c2db7b3

Browse files
committed
Revert 'Delete list format removal condition when choosing applied list format'
1 parent 07d3c48 commit c2db7b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/formatting/BlockFormatter.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class BlockFormatter(editor: AztecText, val listStyle: ListStyle, val quoteStyle
2727
} else {
2828
applyBlockStyle(TextFormat.FORMAT_ORDERED_LIST)
2929
}
30+
} else {
31+
removeBlockStyle(TextFormat.FORMAT_ORDERED_LIST)
3032
}
3133
}
3234

@@ -37,6 +39,8 @@ class BlockFormatter(editor: AztecText, val listStyle: ListStyle, val quoteStyle
3739
} else {
3840
applyBlockStyle(TextFormat.FORMAT_UNORDERED_LIST)
3941
}
42+
} else {
43+
removeBlockStyle(TextFormat.FORMAT_UNORDERED_LIST)
4044
}
4145
}
4246

0 commit comments

Comments
 (0)