From 2b9a181710169fbb49f3a0d2f89c0980288f9c7f Mon Sep 17 00:00:00 2001 From: Samet Tutkun Date: Wed, 28 May 2025 13:59:33 +0200 Subject: [PATCH] Browser Password Suggestion Behavior on Model Provider Page On the Model Provider page, after focusing on a box like an 'API Key' with the type value set to password, when focus is shifted to any other input field, the input box behaves like a password field, prompting the browser to suggest user passwords. Browser: Zen Browser --- web/app/components/base/input/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/app/components/base/input/index.tsx b/web/app/components/base/input/index.tsx index 30fd90aff8..db2c4b8048 100644 --- a/web/app/components/base/input/index.tsx +++ b/web/app/components/base/input/index.tsx @@ -46,6 +46,7 @@ const Input = ({ placeholder, onChange = noop, unit, + type = "text" ...props }: InputProps) => { const { t } = useTranslation() @@ -73,6 +74,7 @@ const Input = ({ value={value} onChange={onChange} disabled={disabled} + type={type} {...props} /> {showClearIcon && value && !disabled && !destructive && (