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
pull/20376/head
Samet Tutkun 12 months ago committed by GitHub
parent c3c67d9608
commit 2b9a181710
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -46,6 +46,7 @@ const Input = ({
placeholder, placeholder,
onChange = noop, onChange = noop,
unit, unit,
type = "text"
...props ...props
}: InputProps) => { }: InputProps) => {
const { t } = useTranslation() const { t } = useTranslation()
@ -73,6 +74,7 @@ const Input = ({
value={value} value={value}
onChange={onChange} onChange={onChange}
disabled={disabled} disabled={disabled}
type={type}
{...props} {...props}
/> />
{showClearIcon && value && !disabled && !destructive && ( {showClearIcon && value && !disabled && !destructive && (

Loading…
Cancel
Save