Skip to content

Commit cb64d18

Browse files
committed
[fix] enter saves edits to model
1 parent 6a886df commit cb64d18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/widgets/cards.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ class SidebarRequestCard extends StatelessWidget {
9797
onTapOutsideNameEditor?.call();
9898
//FocusScope.of(context).unfocus();
9999
},
100+
onFieldSubmitted: (value) {
101+
// As new name is being contantly updated by
102+
// [onChangedNameEditor], stop editing by
103+
// calling this fn
104+
onTapOutsideNameEditor?.call();
105+
},
100106
onChanged: onChangedNameEditor,
101107
decoration: const InputDecoration(
102108
isCollapsed: true,

0 commit comments

Comments
 (0)