Skip to content

Commit

Permalink
Fix dialog text input not submitting empty value
Browse files Browse the repository at this point in the history
If the input accepts an empty value and you hit enter, it wouldn't submit it properly
  • Loading branch information
Gold872 committed Nov 1, 2023
1 parent 97aaf17 commit dfe4b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/widgets/dialog_widgets/dialog_text_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class DialogTextInput extends StatelessWidget {
child: TextField(
enabled: enabled,
onSubmitted: (value) {
if (value.isNotEmpty) {
if (value.isNotEmpty || allowEmptySubmission) {
onSubmit.call(value);
}
},
Expand Down

0 comments on commit dfe4b2f

Please sign in to comment.