Redux 表单中访问和触摸之间的区别?

Difference between visited and touched in Redux Form?

在我的 React 应用程序中使用 Redux-form 包,我注意到 Redux-form 中的字段具有 visited 和 touched 属性。在我看来,它们都表示用户是否已将注意力集中在表单字段上。这两个属性与文本输入有什么区别?

来自 redux-form documentation:

meta.touched : boolean

true if the field has been touched. By default this will be set when the field is blurred.

meta.visited: boolean

true if this field has ever had focus. It will only work if you are passing onFocus to your input element.