Merge pull request #1512 from richardshiue/fix-flowytextfield-bugs

fix: flowy text field bugs
This commit is contained in:
Nathan.fooo
2022-11-30 20:30:42 +08:00
committed by GitHub
3 changed files with 17 additions and 9 deletions

View File

@ -152,7 +152,7 @@ class _TextFilterEditorState extends State<TextFilterEditor> {
return FlowyTextField(
text: state.filter.content,
hintText: LocaleKeys.grid_settings_typeAValue.tr(),
autoFucous: false,
autoFocus: false,
onSubmitted: (text) {
context
.read<TextFilterEditorBloc>()

View File

@ -123,8 +123,9 @@ class _OptionNameTextField extends StatelessWidget {
@override
Widget build(BuildContext context) {
return FlowyTextField(
autoFucous: autoFocus,
autoFocus: autoFocus,
text: name,
maxLength: 30,
onSubmitted: (newName) {
if (name != newName) {
context