InputHidden autocomplete set off
This commit is contained in:
@@ -17,7 +17,7 @@ function InputHidden(props: InputHiddenProps) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="input-group">
|
<div className="input-group">
|
||||||
<input type={type} placeholder="隐藏信息" {...props} />
|
<input type={type} placeholder="隐藏信息" autoComplete="off" {...props} />
|
||||||
{props.suffix && props.suffix}
|
{props.suffix && props.suffix}
|
||||||
<button className="btn primary" onClick={onSwitchType} title={type === "text" ? "隐藏" : "显示"}>
|
<button className="btn primary" onClick={onSwitchType} title={type === "text" ? "隐藏" : "显示"}>
|
||||||
{type === "text" ? <IconEyeClose /> : <IconEye />}
|
{type === "text" ? <IconEyeClose /> : <IconEye />}
|
||||||
|
|||||||
Reference in New Issue
Block a user