InputHidden autocomplete set off

This commit is contained in:
奇趣保罗 2024-04-04 22:09:27 +08:00
parent 56734429a7
commit 288de31580
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ function InputHidden(props: InputHiddenProps) {
return (
<div className="input-group">
<input type={type} placeholder="隐藏信息" {...props} />
<input type={type} placeholder="隐藏信息" autoComplete="off" {...props} />
{props.suffix && props.suffix}
<button className="btn primary" onClick={onSwitchType} title={type === "text" ? "隐藏" : "显示"}>
{type === "text" ? <IconEyeClose /> : <IconEye />}