From e63213d774c21fd029e27fc2f89c7d57a4c23e5e Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Date: Fri, 30 Jan 2026 10:33:26 +0530 Subject: [PATCH] fix(mobile): do not autocorrect on endpoint input (#25696) Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- mobile/lib/widgets/forms/login/login_form.dart | 1 + mobile/packages/ui/lib/src/components/text_input.dart | 3 +++ 2 files changed, 4 insertions(+) diff --git a/mobile/lib/widgets/forms/login/login_form.dart b/mobile/lib/widgets/forms/login/login_form.dart index 71086fd803..2aa770f104 100644 --- a/mobile/lib/widgets/forms/login/login_form.dart +++ b/mobile/lib/widgets/forms/login/login_form.dart @@ -414,6 +414,7 @@ class LoginForm extends HookConsumerWidget { keyboardAction: TextInputAction.next, keyboardType: TextInputType.url, autofillHints: const [AutofillHints.url], + autoCorrect: false, onSubmit: (ctx, _) => ImmichForm.of(ctx).submit(), ), ), diff --git a/mobile/packages/ui/lib/src/components/text_input.dart b/mobile/packages/ui/lib/src/components/text_input.dart index f335df49f4..1b3fb91f51 100644 --- a/mobile/packages/ui/lib/src/components/text_input.dart +++ b/mobile/packages/ui/lib/src/components/text_input.dart @@ -12,6 +12,7 @@ class ImmichTextInput extends StatefulWidget { final List? autofillHints; final Widget? suffixIcon; final bool obscureText; + final bool autoCorrect; const ImmichTextInput({ super.key, @@ -26,6 +27,7 @@ class ImmichTextInput extends StatefulWidget { this.autofillHints, this.suffixIcon, this.obscureText = false, + this.autoCorrect = true, }); @override @@ -79,6 +81,7 @@ class _ImmichTextInputState extends State { validator: _validateInput, keyboardType: widget.keyboardType, textInputAction: widget.keyboardAction, + autocorrect: widget.autoCorrect, autofillHints: widget.autofillHints, onTap: () => setState(() => _error = null), onTapOutside: (_) => _focusNode.unfocus(),