Skip to content

Commit 6e13f5c

Browse files
authored
Merge pull request #255 from opxdelwin/issue-254
[fix] enter saves edits to model
2 parents fcefe78 + cb64d18 commit 6e13f5c

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)