mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 03:08:21 +08:00
fix(hooks): [use-focus-controller] remove unnecessary role attributes (#13749)
fix(hooks): [a11y] remove unnecessary role attributes
This commit is contained in:
parent
0697a036f3
commit
014a99e3e7
@ -41,7 +41,6 @@ export function useFocusController<T extends HTMLElement>(
|
||||
|
||||
watch(wrapperRef, (el) => {
|
||||
if (el) {
|
||||
el.setAttribute('role', 'button')
|
||||
el.setAttribute('tabindex', '-1')
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user