mirror of
https://github.com/R0m1k3/Reviflow.git
synced 2026-10-24 15:38:07 +02:00
fix(auth): force input remount on mode switch to handle autofill
This commit is contained in:
1 parent
7cb6c36d10
commit
7a816c8230
1 file changed
+2
@@ -102,6 +102,7 @@ export const LoginPage = () => {
|
|||||||
{isParentMode ? <Mail className="h-5 w-5" /> : <Mail className="h-5 w-5" />}
|
{isParentMode ? <Mail className="h-5 w-5" /> : <Mail className="h-5 w-5" />}
|
||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
|
key={isParentMode ? "email-input" : "username-input"}
|
||||||
id="identifier"
|
id="identifier"
|
||||||
type={isParentMode ? "email" : "text"}
|
type={isParentMode ? "email" : "text"}
|
||||||
placeholder={isParentMode ? "michael@exemple.com" : "Nom d'apprenti"}
|
placeholder={isParentMode ? "michael@exemple.com" : "Nom d'apprenti"}
|
||||||
@@ -121,6 +122,7 @@ export const LoginPage = () => {
|
|||||||
<Lock className="h-5 w-5" />
|
<Lock className="h-5 w-5" />
|
||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
|
key={isParentMode ? "password-input" : "pin-input"}
|
||||||
id="password"
|
id="password"
|
||||||
type={showPassword ? "text" : "password"}
|
type={showPassword ? "text" : "password"}
|
||||||
placeholder={isParentMode ? "••••••••" : "••••"}
|
placeholder={isParentMode ? "••••••••" : "••••"}
|
||||||
|
|||||||
Reference in new issue
Block a user