【发布时间】:2020-01-27 18:12:16
【问题描述】:
我正在使用 React redux-form 输入,这是我的代码:
return (
<Field
key={name}
component={SurveyField}
type="text"
label={label}
name={name}
autocomplete="off"
/>
);
我不希望 chrome 自动完成表单。 我都试过了,但都没有。
autocomplete="off"
autoComplete="off"
我想 Chrome 只是忽略了自动完成。我看过其他 StackOverflow 问题,但没有帮助。
【问题讨论】:
-
(tl;博士:
autoComplete,不是autocomplete)。 -
你们都给出了可能重复的链接,但是没有使用 redux 形式的有效解决方案
标签: reactjs