Fix select font style always default when changed

(cherry picked from commit 886a08892a6307c6e2c3490b1361eea6e9a423a0)
This commit is contained in:
dab246
2023-06-15 17:10:25 +07:00
committed by Dat Vu
parent d51b7bc9f4
commit 36a09827cf
@@ -71,7 +71,6 @@ class RichTextWebController extends BaseRichTextController {
selectedTextColor.value = settings.foregroundColor;
selectedTextBackgroundColor.value = settings.backgroundColor;
selectedFontName.value = FontNameType.values.firstWhereOrNull((font) => font.name == settings.fontName) ?? FontNameType.sansSerif;
if (settings.isAlignCenter) {
selectedParagraph.value = ParagraphType.alignCenter;