问题描述
在vue+element项目开发过程中 有一个页面使用了el-radio组件 但是在切换时会报错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
解决方式
浏览器检测策略导致
//lang="scss"
/deep/ .el-radio__original {
display: none !important;
}
/deep/.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
box-shadow: none !important;
}
添加后完美解决