Skip to content

Commit c821b8c

Browse files
authored
fix: field editor bugs (#4241)
1 parent 93786ba commit c821b8c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_edit_field_screen.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class _MobileEditPropertyScreenState extends State<MobileEditPropertyScreen> {
5555
LocaleKeys.grid_field_editProperty.tr(),
5656
),
5757
leading: AppBarBackButton(
58-
onTap: () => context.pop(),
58+
onTap: () => context.pop(field),
5959
),
6060
),
6161
body: FieldOptionEditor(
@@ -108,7 +108,7 @@ class _MobileEditPropertyScreenState extends State<MobileEditPropertyScreen> {
108108
service.show();
109109
break;
110110
}
111-
context.pop();
111+
context.pop(field);
112112
},
113113
),
114114
);

frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_field_type_option_editor.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,9 @@ class _FieldOptionEditorState extends State<FieldOptionEditor> {
202202
() {
203203
if (widget.mode == FieldOptionMode.add) {
204204
controller.text = type.i18n;
205+
_updateOptionValues(name: type.i18n);
205206
}
206-
_updateOptionValues(type: type, name: type.i18n);
207+
_updateOptionValues(type: type);
207208
},
208209
),
209210
),

frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_quick_field_editor.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class _QuickEditFieldState extends State<QuickEditField> {
7777
widget.fieldInfo.field.freeze();
7878
final field = widget.fieldInfo.field.rebuild((field) {
7979
field.name = controller.text;
80+
field.fieldType = fieldType;
8081
});
8182
final optionValues = await showEditFieldScreen(
8283
context,

0 commit comments

Comments
 (0)