PrimeFaces密码toggleMask:Edge浏览器的两个切换器

huangapple go评论62阅读模式
英文:

PrimeFaces password toggleMask: two togglers for Edge browser

问题

PrimeFaces密码toggleMask:Edge浏览器的两个切换器。

https://www.primefaces.org/showcase/ui/input/password.xhtml

重现步骤:

  1. 清除切换掩码的密码。
  2. 输入任何密码,将显示一个额外的切换器。

版本:12.0.0。

英文:

PrimeFaces password toggleMask: two togglers for Edge browser.

https://www.primefaces.org/showcase/ui/input/password.xhtml

Reproducer:

  1. clear the password for toggle mask.
  2. enter any password, an additional toggler will show.

Version: 12.0.0.

答案1

得分: 2

问题已经打开:https://github.com/primefaces/primefaces/issues/9880

已在13.0.0版本中修复:https://github.com/primefaces/primefaces/pull/9881

如果您现在需要修复,只需将以下CSS添加到您的页面:

.ui-password > input::-ms-reveal,
.ui-password > input::-ms-clear {
    display: none;
}
英文:

Issue opened: https://github.com/primefaces/primefaces/issues/9880

Fixed in 13.0.0: https://github.com/primefaces/primefaces/pull/9881

If you need the fix right now just add this CSS to your page:

.ui-password > input::-ms-reveal,
.ui-password > input::-ms-clear {
    display: none;
}

答案2

得分: 0

只需将以下内容应用:

::-ms-reveal {
    display: none;
}

以移除Edge密码显示按钮。

英文:

Just as additional information to @Melloware 's answer, you can simply apply:

::-ms-reveal {
    display: none;
}

to remove the Edge password reveal button.

huangapple
  • 本文由 发表于 2023年3月7日 20:24:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/75661945.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定