fix(hooks): [use-focus-controller] remove unnecessary role attributes (#13749)

fix(hooks): [a11y] remove unnecessary role attributes
This commit is contained in:
qiang
2023-07-28 21:25:33 +08:00
committed by GitHub
parent 0697a036f3
commit 014a99e3e7

View File

@@ -41,7 +41,6 @@ export function useFocusController<T extends HTMLElement>(
watch(wrapperRef, (el) => {
if (el) {
el.setAttribute('role', 'button')
el.setAttribute('tabindex', '-1')
}
})