From 055366c0a2c94b3c820095264d22dcb999e0adfc Mon Sep 17 00:00:00 2001 From: ioni <104294646+IongIer@users.noreply.github.com> Date: Tue, 28 May 2024 10:25:04 +0300 Subject: [PATCH] Fixes input fields that take emails --- apis/src/pages/login.rs | 2 +- apis/src/pages/register.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/src/pages/login.rs b/apis/src/pages/login.rs index fc74807c..ce8d5dad 100644 --- a/apis/src/pages/login.rs +++ b/apis/src/pages/login.rs @@ -25,7 +25,7 @@ pub fn Login(#[prop(optional)] extend_tw_classes: &'static str) -> impl IntoView class="px-3 py-2 w-full leading-tight rounded border shadow appearance-none focus:outline-none" name="email" id="email" - type="text" + type="email" inputmode="email" autocomplete="email" placeholder="E-mail" diff --git a/apis/src/pages/register.rs b/apis/src/pages/register.rs index 98c0e66f..9be493ce 100644 --- a/apis/src/pages/register.rs +++ b/apis/src/pages/register.rs @@ -137,7 +137,7 @@ pub fn Register(#[prop(optional)] extend_tw_classes: &'static str) -> impl IntoV class="px-3 py-2 w-full leading-tight rounded border shadow appearance-none focus:outline-none" name="email" - type="text" + type="email" inputmode="email" prop:value=email autocomplete="email"