ElemeFE / ElemeFE/element

[Bug Report] el-radio,点击选择框时,控制台报Blocked aria-hidden on ......

Open
#22,936 14 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.15.14

### OS/Browsers version
chrome

### Vue version
2.7.16

### Reproduction Link
https://element.eleme.cn/2.15/#/zh-CN/component/radio

### Steps to reproduce
点击任意一个选择框,控制台报
Blocked aria-hidden on a element because the element that just received 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.
![image](https://github.com/user-attachments/assets/f83d1ed8-c62d-4dac-a903-c679b8b364ef)

### What is Expected?
看了一下代码,是因为在radio.js文件加了"aria-hidden": "true"这么一个属性
不影响实际使用。网上搜了一圈,发现没有人提到这个现象,所以提一下

### What is actually happening?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.