使用element-ui 穿梭框组件,浏览器控制台报错
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
是由于浏览器检测策略导致报错
对报错的组件类型,写如下样式,即可解决
// radio checkbox根据你使用组件,自行更换
/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;
}