High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): do not autocorrect on endpoint input (#25696)
shenlonge63213d774c2
diff --git a/mobile/lib/widgets/forms/login/login_form.dart b/mobile/lib/widgets/forms/login/login_form.dartindex 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.dartindex 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<String>? 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<ImmichTextInput> {validator: _validateInput,keyboardType: widget.keyboardType,textInputAction: widget.keyboardAction,+ autocorrect: widget.autoCorrect,autofillHints: widget.autofillHints,onTap: () => setState(() => _error = null),onTapOutside: (_) => _focusNode.unfocus(),