在Edge中禁用输入文字建议? [英] Disable input text suggestions in Edge?

查看:112
本文介绍了在Edge中禁用输入文字建议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个文本框下拉AngularJS组件,该组件在Chrome,Firefox,Safari和Internet Explorer中都可以很好地工作.

I have built a textbox dropdown AngularJS component which works great in Chrome, Firefox, Safari and Internet Explorer.

此组件的一个功能是您键入一个字符串,然后可以使用向上/向下箭头键滚动浏览建议.

A feature of this component is that you type in a string, and then can use the up/down arrow keys to scroll through suggestions.

在Microsoft Edge中,只要您按下向下箭头,就会在输入框中添加以下文本:

In Microsoft Edge, as soon as you hit the down arrow, the following text is added to the input box:

简要说明您的更改(正确的拼写,固定的语法,改进的格式)

briefly explain your changes (corrected spelling, fixed grammar, improved formatting)

有什么我可以做的事情来阻止这种情况的发生吗?

Is there anything I can do client side to stop this from happening?

<form>
    <input type="text" />    
</form>

为演示这一点,请运行上面的片段器,在文本框中键入内容,然后在Edge上单击两次向下箭头.我希望这种情况不会发生,因为它破坏了我的自动填充功能!

To demonstrate this, run the above snipper, type something into the textbox and hit the down arrow twice on Edge. I want this to not happen, as it is breaking my autocomplete!

谢谢

推荐答案

如果我正确理解,则说明自动填充功能存在问题.只需在输入中添加"autocomplete ='off'",即可禁用该功能.

If I understand correctly, you are having an issue with the autocomplete feature. Simple add "autocomplete='off'" to your input and that should disable the feature.

<input type="text" autocomplete="off"/>

这篇关于在Edge中禁用输入文字建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆