settings: clicking the eye again actually hides the secret
All checks were successful
Build and Push Docker Image / build (push) Successful in 5m11s
All checks were successful
Build and Push Docker Image / build (push) Successful in 5m11s
Previously the input type was `revealed || !isMasked ? "text" : "password"` — once revealed the value was no longer the "***" placeholder, so !isMasked kept the input in text mode even with revealed=false. Type now depends on `revealed` alone, so a second click re-dots the field. v2026.04.15.6 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "netfelix-audio-fix",
|
"name": "netfelix-audio-fix",
|
||||||
"version": "2026.04.15.5",
|
"version": "2026.04.15.6",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev:server": "NODE_ENV=development bun --hot server/index.tsx",
|
"dev:server": "NODE_ENV=development bun --hot server/index.tsx",
|
||||||
"dev:client": "vite",
|
"dev:client": "vite",
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ function SecretInput({
|
|||||||
return (
|
return (
|
||||||
<div className={`relative ${className ?? ""}`}>
|
<div className={`relative ${className ?? ""}`}>
|
||||||
<Input
|
<Input
|
||||||
type={revealed || !isMasked ? "text" : "password"}
|
type={revealed ? "text" : "password"}
|
||||||
value={value}
|
value={value}
|
||||||
disabled={locked}
|
disabled={locked}
|
||||||
onChange={(e) => onChange(e.target.value)}
|
onChange={(e) => onChange(e.target.value)}
|
||||||
|
|||||||
Reference in New Issue
Block a user