mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-11-09 13:09:21 +03:00
fix: cjk input in calendar and row detail (#4726)
This commit is contained in:
parent
f5cc6521fb
commit
4ca3ba8e08
@ -268,7 +268,11 @@ class _TitleTextCellSkin extends IEditableTextCellSkin {
|
||||
textStyle: Theme.of(context).textTheme.bodyMedium?.copyWith(fontSize: 14),
|
||||
focusNode: focusNode,
|
||||
hintText: LocaleKeys.calendar_defaultNewCalendarTitle.tr(),
|
||||
onChanged: (text) => bloc.add(TextCellEvent.updateText(text)),
|
||||
onChanged: (text) {
|
||||
if (textEditingController.value.composing.isCollapsed) {
|
||||
bloc.add(TextCellEvent.updateText(text));
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -302,7 +302,11 @@ class _TitleSkin extends IEditableTextCellSkin {
|
||||
isDense: true,
|
||||
isCollapsed: true,
|
||||
),
|
||||
onChanged: (text) => bloc.add(TextCellEvent.updateText(text.trim())),
|
||||
onChanged: (text) {
|
||||
if (textEditingController.value.composing.isCollapsed) {
|
||||
bloc.add(TextCellEvent.updateText(text));
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user