javascript - 如何避免或禁用 Redux 表单文本输入中的自动完成功能?

标签 javascript react-redux redux-form

我正在使用 ReactJS 和 ReduxJS 来构建我的应用程序。

我使用 Redux-Form 创建了表单,有很多文本输入,对于其中一个,我使用 onkeyDown 事件来增加和减少文本中的数字

so when i click up arrow or enter first digit the text is auto completed with previous date entered(history) that disturb when i click another up arrow

[提示]我尝试了AutoComplete=off但没有成功

enter image description here

最佳答案

您只是属性大小写不正确。您可以在输入上使用以下 3 个属性:

autoComplete="off"
autoCorrect="off"
spellCheck="off"

请注意,每个都是驼峰式大小写。

关于javascript - 如何避免或禁用 Redux 表单文本输入中的自动完成功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41056858/

相关文章:

reactjs - 如何设置和获取 redux-form 字段的值

Javascript删除表单输入添加到innerHTML

javascript - 分割值未正确计算

javascript - 使用 div 重新创建行为 "background-attachment: fixed"

reactjs - 不变违规 : Could not find "store" in either the context or props of "Connect(App)"

javascript - 提交 redux-form 时如何引用 prop

redux - 调用 Action 创建者但未调度 Action

javascript - PHP 的替代品包括?

javascript - React+Redux 中数据更改时更新状态

javascript - Mapdispatchtoprops 没有为 props 提供功能