antd - Form 自动提示在页面滚动后错位,请问如何解决?
本文介绍了antd - Form 自动提示在页面滚动后错位,请问如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
form表单提交后,input会缓存历史数据给出自动提示,但是滚动页面后,自动提示会错位,请问如何解决?
<FormItem label="应用名" >
{getFieldDecorator('name', {
initialValue: 'demo',
})(<Input style={{ width: 540 }}/>)}
</FormItem>
解决方案
<FormItem label="应用名" >
{getFieldDecorator('name', {
initialValue: 'demo',
})(<Input style={{ width: 540 }} autoComplete='off'/>)}
</FormItem>
这篇关于antd - Form 自动提示在页面滚动后错位,请问如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文