使用element-ui 穿梭框組件毛甲,瀏覽器控制臺報(bào)錯
Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden.
Element with focus: input
image.png
是由于瀏覽器檢測策略導(dǎo)致報(bào)錯
對報(bào)錯的組件類型粱坤,寫如下樣式氏淑,即可解決
// radio checkbox根據(jù)你使用組件介汹,自行更換
/deep/ .el-checkbox__original {
display: none !important;
}
/deep/.el-checkbox:focus:not(.is-focus):not(:active):not(.is-disabled) .el-checkbox__inner {
box-shadow: none !important;
}