简体   繁体   English

Reactjs 自动完成:'关闭'

[英]Reactjs AutoComplete : 'off'

<div className={inputContainerClass}>
 <input
                    required
                    autoComplete='off'
                    value={value}
                    type='password'
                    maxLength=15
                />

</div>

autoComplete: 'off' , autoComplete: {'off'} , autocomplete:{false} , <input type="password" style="display:none"> are not working. autoComplete: 'off' , autoComplete: {'off'} , autocomplete:{false} , <input type="password" style="display:none">不工作。

<div className={inputContainerClass}>
 <input
                    required
                    autoComplete='off'
                    value={value}
                    type='password'
                    maxLength=15
                />

</div>

autoComplete : 'off' , autoComplete: {'off'} , autocomplete:{false} , <input type="password" style="display:none"> are not working. autoComplete : 'off'autoComplete: {'off'}autocomplete:{false}<input type="password" style="display:none">不起作用。

<div className={inputContainerClass}>
 <input
                    required
                    autoComplete='off'
                    value={value}
                    type='password'
                    maxLength=15
                />

</div>

autoComplete : 'off' , autoComplete: {'off'} , autocomplete:{false} , <input type="password" style="display:none"> are not working. autoComplete : 'off'autoComplete: {'off'}autocomplete:{false}<input type="password" style="display:none">不起作用。

<div className={inputContainerClass}>
 <input
                    required
                    autoComplete='off'
                    value={value}
                    type='password'
                    maxLength=15
                />

</div>

autoComplete : 'off' , autoComplete: {'off'} , autocomplete:{false} , <input type="password" style="display:none"> are not working. autoComplete : 'off'autoComplete: {'off'}autocomplete:{false}<input type="password" style="display:none">不起作用。

Add this attribute to your component:将此属性添加到您的组件:

autoComplete="off" role="presentation"

<div className={inputContainerClass}>
 <input
                    required
                    autoComplete='off'
                    value={value}
                    type='password'
                    maxLength=15
                />

</div>

autoComplete : 'off' , autoComplete: {'off'} , autocomplete:{false} , <input type="password" style="display:none"> are not working. autoComplete : 'off'autoComplete: {'off'}autocomplete:{false}<input type="password" style="display:none">不起作用。

<div className={inputContainerClass}>
 <input
                    required
                    autoComplete='off'
                    value={value}
                    type='password'
                    maxLength=15
                />

</div>

autoComplete : 'off' , autoComplete: {'off'} , autocomplete:{false} , <input type="password" style="display:none"> are not working. autoComplete : 'off'autoComplete: {'off'}autocomplete:{false}<input type="password" style="display:none">不起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM