# Disable auto-focus on email input in Universal Login

**URL:** <https://community.auth0.com/t/disable-auto-focus-on-email-input-in-universal-login/168094>\
**Category:** Product Feedback\
**Tags:** dotnet-maui, feature-request, universal-login\
**Created:** [January 9, 2025, 11:41pm UTC](https://community.auth0.com/t/disable-auto-focus-on-email-input-in-universal-login/168094 "2025-01-09T23:41:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzavala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dzavala/32/70151_2.png) [@dzavala](https://community.auth0.com/u/dzavala)\
**Post date:** [January 9, 2025, 11:41pm UTC](https://community.auth0.com/t/disable-auto-focus-on-email-input-in-universal-login/168094/1 "2025-01-09T23:41:14Z")

</div>

**Feature:** Disable auto-focus on email input in Universal Login

**Description:** My main concern is to be able to remove the autofocus on the email input as I want to show the login without opening the keyboard or the autofill which automatically fills the email and password.

**Use-case:** I’m currently work with .NET MAUI and in iOS when the Safari browser is open, automatically the email input is focused. I would like to prevent this.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [January 12, 2025, 10:13pm UTC](https://community.auth0.com/t/disable-auto-focus-on-email-input-in-universal-login/168094/2 "2025-01-12T22:13:18Z")

</div>

Hi @dzavala

Welcome to the Auth0 Community, and thank you for your feedback!

Dawid

---

<div class="post-metadata">

**Author:** ![bruce.webster](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bruce.webster/32/71291_2.png) [@bruce.webster](https://community.auth0.com/u/bruce.webster)\
**Post date:** [September 4, 2025, 10:28pm UTC](https://community.auth0.com/t/disable-auto-focus-on-email-input-in-universal-login/168094/3 "2025-09-04T22:28:39Z")

</div>

The auto-focus is very annoying. The keyboard popping up hides the simpler Apple/Google login options, pushing most users to the more difficult, less-reliable option of email+password.

---

<div class="post-metadata">

**Author:** ![sators](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sators/32/77992_2.png) [@sators](https://community.auth0.com/u/sators)\
**Post date:** [January 6, 2026, 9:13pm UTC](https://community.auth0.com/t/disable-auto-focus-on-email-input-in-universal-login/168094/4 "2026-01-06T21:13:47Z")

</div>

Agreed! Don’t hide social logins with the keyboard by thinking it’s easier for them to start typing when they could instead one-press be logged in!

---

<div class="post-metadata">

**Author:** ![bruce.webster](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bruce.webster/32/71291_2.png) [@bruce.webster](https://community.auth0.com/u/bruce.webster)\
**Post date:** [May 11, 2026, 7:09am UTC](https://community.auth0.com/t/disable-auto-focus-on-email-input-in-universal-login/168094/5 "2026-05-11T07:09:01Z")

</div>

Please add a switch for `disable_autofocus` !

But in the meantime, I got tired of waiting. I still didn’t want to maintain a custom login screen, so I found a hack:

Use the Management API with `update:branding` permission to post to `<your-custom-domain>/api/v2/branding/templates/universal-login` with the following HTML template. I started with the most basic sample template + a de-focus script on load.

The universal login styles apply as normal… except page background image! Strangely the page-background-image var is only available on a div wrapper with generated class names, missing when using a page template… so I had to manually add my background image.

You may get a slight focus/unfocus flicker, but it works. Reasonably robust as it doesn’t look for any auth0 element IDs, just de-focusses whatever is active.

```auto
<!DOCTYPE html>

{% assign resolved_dir = dir | default: “auto” %}

<html lang="{{locale}}" dir="{{resolved_dir}}">
  <head>
    {%- auth0:head -%}
  </head>

  <body class="_widget-auto-layout" style="background-image: url('https://<YOUR_IMAGE>'); background-size: cover; background-position: center; background-repeat: no-repeat;">
    {%- auth0:widget -%}

<script>
  window.addEventListener("load", function () {
    function blurActiveElement() {
      if (document.activeElement && document.activeElement.blur) {
        document.activeElement.blur();
      }
    }
    setTimeout(blurActiveElement, 0);
    setTimeout(blurActiveElement, 100);
    setTimeout(blurActiveElement, 300);
  });
</script>

</body>
</html>

```
