Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fixes

AmanRajSinghMouryafb1ba4bbe0e3
diff --git a/mobile/apps/locker/lib/ui/components/input_sheet.dart b/mobile/apps/locker/lib/ui/components/input_sheet.dart
index a794d011b4..ad6178907e 100644
--- a/mobile/apps/locker/lib/ui/components/input_sheet.dart
+++ b/mobile/apps/locker/lib/ui/components/input_sheet.dart
@@ -61,9 +61,11 @@ class _InputSheetState extends State<InputSheet> {
}
Future<void> _onSubmit() async {
- final text = _textController.text.trim();
+ final text = widget.isPasswordInput
+ ? _textController.text
+ : _textController.text.trim();
- if (text.isEmpty || _isSubmitting) {
+ if (text.trim().isEmpty || _isSubmitting) {
return;
}